[Python-ideas] Pseudo-package for current directory
Niki Spahiev
niki.spahiev at gmail.com
Wed Mar 9 07:16:18 EST 2016
On 9.03.2016 12:30, Joseph Martinot-Lagarde wrote:
>
> To me the cleanest (from a user point of view) way would be to enable "from
> . import xxx" in scripts outside packages. When I learned about relative
> imports I was really surprised by this limitation. If it was possible I'd
> use it everywhere.
with python 3.5 import machinery its 3 line hack to fill
sys.modules[''].__path__
Niki
More information about the Python-ideas
mailing list