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
2018-07-21 00:16:10 +02:00
parent ad5170a37a
commit 4b276bae87
6 changed files with 56 additions and 22 deletions

View File

@@ -0,0 +1 @@
name = 1