Fixed relative imports.
This commit is contained in:
1 parent
6c5f3419ff
commit
c71646a9a0
2 files changed
+21
-10
No files matched your search
@@ -57,7 +57,8 @@ class ImportWrapper():
|
||||
try:
|
||||
module = self._import.get_parent_until()
|
||||
import_path = self._import.path_for_name(self._name)
|
||||
importer = get_importer(self._evaluator, tuple(import_path), module, level=0)
|
||||
importer = get_importer(self._evaluator, tuple(import_path),
|
||||
module, self._import.level)
|
||||
try:
|
||||
module, rest = importer.follow_file_system()
|
||||
except ModuleNotFound as e:
|
||||
|
||||
Reference in new issue
Block a user