Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relative import: problem with depth #396

Open
sgouezel opened this issue Jul 19, 2020 · 0 comments
Open

Relative import: problem with depth #396

sgouezel opened this issue Jul 19, 2020 · 0 comments

Comments

@sgouezel
Copy link

sgouezel commented Jul 19, 2020

When trying to use relative imports, I realized that they did not work for files with more than 3 levels of subdirectories. Browing on Zulip, I found a message from Mario (from 2018!) saying the following:

I guess no one has ever tried to use 7 dots in a row in relative imports, but it doesn't work. The = should be a += here, and I tested that if you put import .......test it counts as only one level up (and in general k dots means k mod 3 levels up)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant