Zulip Chat Archive

Stream: new members

Topic: complex-number-game import


Jiekai (Jul 17 2021 at 09:30):

The import line of src/complex/your_solutions/Level_02_I.lean is

import complex.Level_01_of_real
src/
└── complex
    ├── kb_solutions
    │   ├── Level_00_basic.lean
    │   ├── Level_01_of_real.lean
    │   ├── Level_02_I.lean
    ├── Level_00_basic.lean
    ├── Level_01_of_real.lean
    ├── Level_02_I.lean
    └── your_solutions
        ├── Level_01_of_real.lean
        ├── Level_02_I.lean

Which Level_01_of_real.lean will be imported?

Jiekai (Jul 17 2021 at 09:35):

I see. It's the relative path to the src/, right?

Johan Commelin (Jul 17 2021 at 10:57):

@Jiekai yep. You can do relative paths with import .sibling.subfile


Last updated: Dec 20 2023 at 11:08 UTC