1
0
forked from VimPlug/jedi

Make the new project API fully work in tests

This commit is contained in:
Dave Halter
2018-01-17 09:54:11 +01:00
parent fe813292cf
commit 9b5e3447d9
6 changed files with 20 additions and 14 deletions

View File

@@ -87,12 +87,12 @@ class Project(object):
one is used like a public method.
"""
sys_path = list(self._get_base_sys_path(environment))
if self._smart_sys_path:
if evaluator.script_path is None or not self._smart_sys_path:
return sys_path
added_paths = map(
force_unicode,
detect_additional_paths(self._evaluator, self._script_path)
detect_additional_paths(evaluator, evaluator.script_path)
)
return sys_path + list(added_paths)