forked from VimPlug/jedi
sys_path_with_modifications: append local file
This fixes "goto" preferring a local module instead of a global one. Fixes https://github.com/davidhalter/jedi/issues/995.
This commit is contained in:
committed by
Dave Halter
parent
f37089e54b
commit
adace8d7cb
@@ -266,7 +266,7 @@ class Importer(object):
|
||||
# Since we know nothing about the call location of the sys.path,
|
||||
# it's a possibility that the current directory is the origin of
|
||||
# the Python execution.
|
||||
sys_path_mod.insert(0, os.path.dirname(self.file_path))
|
||||
sys_path_mod.append(os.path.dirname(self.file_path))
|
||||
|
||||
return in_path + sys_path_mod
|
||||
|
||||
|
||||
Reference in New Issue
Block a user