From 545356635231486cefbb0db26e8362b8f22bdebf Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Fri, 16 Feb 2018 20:37:03 +0100 Subject: [PATCH] Use the project path as a prefix, because many times it's used as a higher priority than other stuff --- jedi/api/project.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jedi/api/project.py b/jedi/api/project.py index 78805b9f..ec958662 100644 --- a/jedi/api/project.py +++ b/jedi/api/project.py @@ -106,7 +106,7 @@ class Project(object): sys_path = list(self._get_base_sys_path(environment)) if self._smart_sys_path: - suffixed.append(self._path) + prefixed.append(self._path) if evaluator.script_path is not None: suffixed += discover_buildout_paths(evaluator, evaluator.script_path) @@ -126,8 +126,8 @@ class Project(object): if self._django: prefixed.append(self._path) - path = _force_unicode_list(prefixed) + sys_path + _force_unicode_list(suffixed) - return list(_remove_duplicates_from_path(path)) + path = prefixed + sys_path + suffixed + return list(_force_unicode_list(_remove_duplicates_from_path(path))) def save(self): data = dict(self.__dict__)