1
0
forked from VimPlug/jedi

Fix test_imports tests, now zip imports work again

This commit is contained in:
Dave Halter
2019-03-26 09:16:38 +01:00
parent b6612a83c3
commit a437c2cb02
7 changed files with 156 additions and 116 deletions

View File

@@ -191,9 +191,8 @@ class ModuleContext(ModuleMixin, TreeContext):
# Default to the of this file.
file = self.py__file__()
if file is None:
return None
return os.path.dirname(file)
assert file is not None # Shouldn't be a package in the first place.
return [os.path.dirname(file)]
@property
def py__path__(self):