diff --git a/jedi/evaluate/imports.py b/jedi/evaluate/imports.py index ecf656b1..89dd833f 100644 --- a/jedi/evaluate/imports.py +++ b/jedi/evaluate/imports.py @@ -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