The import resolution for namespace packages was wrong

With this change we can now include all parents of the script, which will make
relative imports always work.

Now the whole meta_path is scanned and not just importlib's PathFinder.

Fixes #1183.
This commit is contained in:
Dave Halter committed 2018-07-21 00:16:10 +02:00
1 parent ad5170a37a
commit 4b276bae87
6 files changed
+56 -22

No files matched your search

@@ -0,0 +1 @@
from .rel2 import name
@@ -0,0 +1 @@
name = 1