1
0
forked from VimPlug/jedi

static analysis: Import tests working again.

This commit is contained in:
Dave Halter
2014-12-11 16:25:18 +01:00
parent 6818d3affa
commit 77fdbac234
3 changed files with 13 additions and 6 deletions

View File

@@ -128,7 +128,8 @@ class ImportWrapper(pr.Base):
for s in scopes))
else:
print(self._import, scopes, rest)
if self._import.type == 'import_from':
if self._import.type == 'import_from' \
or importer.str_import_path == ('os', 'path'):
scopes = importer.follow_rest(scopes[0], rest)
else:
scopes = []