[Python-ideas] Relative Imports

Chris Angelico rosuav at gmail.com
Fri Nov 9 19:00:16 EST 2018


On Sat, Nov 10, 2018 at 10:52 AM danish bluecheese
<danish.bluecheese at gmail.com> wrote:
>
> └── src
>     ├── __init__.py
>     ├── main.py
>     └── test
>         ├── __init__.py
>         └── test_main.py
>
> assume the structure above. To be able to use relative imports with such fundamental structure either i can go for sys.path hacks or could run as a module from one further level parent.
> I do not like this :D want to be able to use relational imports freely as soon as I provide correct relational path.
>
> Please let me know, if it is not clear on any aspect.

The main thing that's not clear here is what you're proposing. What is
the idea under discussion?

ChrisA


More information about the Python-ideas mailing list