forked from VimPlug/jedi
One more relative import fix
This commit is contained in:
+1
-1
@@ -67,7 +67,7 @@ class Project(object):
|
||||
"""
|
||||
def py2_comp(path, environment=None, sys_path=None,
|
||||
smart_sys_path=True, _django=False):
|
||||
self._path = path
|
||||
self._path = os.path.abspath(path)
|
||||
if isinstance(environment, SameEnvironment):
|
||||
self._environment = environment
|
||||
|
||||
|
||||
@@ -217,7 +217,7 @@ def _level_to_base_import_path(project_path, directory, level):
|
||||
level_import_paths.insert(0, dir_name)
|
||||
d = os.path.dirname(d)
|
||||
else:
|
||||
return None, d
|
||||
return None, directory
|
||||
|
||||
|
||||
class Importer(object):
|
||||
|
||||
Reference in New Issue
Block a user