1
0
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:
Daniel Hahler
2017-12-19 14:32:45 +01:00
committed by Dave Halter
parent f37089e54b
commit adace8d7cb

View File

@@ -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