1
0
forked from VimPlug/jedi

Small sys path refactoring.

This commit is contained in:
Dave Halter
2017-10-06 09:01:15 +02:00
parent 21531abd1e
commit 8dba08eeb2
3 changed files with 10 additions and 10 deletions

View File

@@ -252,10 +252,8 @@ class Importer(object):
def sys_path_with_modifications(self):
in_path = []
sys_path_mod = list(sys_path.sys_path_with_modifications(
self._evaluator,
self.module_context
))
sys_path_mod = self._evaluator.project.sys_path \
+ sys_path.check_sys_path_modifications(self.module_context)
if self.file_path is not None:
# If you edit e.g. gunicorn, there will be imports like this:
# `from gunicorn import something`. But gunicorn is not in the