Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move extra_paths to the proper part of jedi.Project #909

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyls/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def jedi_script(self, position=None, use_document_path=False):
env_vars.pop('PYTHONPATH', None)

environment = self.get_enviroment(environment_path, env_vars=env_vars) if environment_path else None
sys_path = self.sys_path(environment_path, env_vars=env_vars) + extra_paths
sys_path = self.sys_path(environment_path, env_vars=env_vars)
project_path = self._workspace.root_path

# Extend sys_path with document's path if requested
Expand All @@ -269,7 +269,7 @@ def jedi_script(self, position=None, use_document_path=False):
'code': self.source,
'path': self.path,
'environment': environment,
'project': jedi.Project(path=project_path, sys_path=sys_path),
'project': jedi.Project(path=project_path, sys_path=sys_path, added_sys_path=extra_paths),
}

if position:
Expand Down