1
0
forked from VimPlug/jedi

Fixed relative imports.

This commit is contained in:
Dave Halter
2014-11-19 13:13:06 +01:00
parent 6c5f3419ff
commit c71646a9a0
2 changed files with 21 additions and 10 deletions
+2 -1
View File
@@ -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: