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

@@ -7,10 +7,12 @@ from jedi.cache import underscore_memoization
class Project(object):
def __init__(self, sys_path=None):
if sys_path is None:
venv = os.getenv('VIRTUAL_ENV')
if venv:
sys_path = get_venv_path(venv)
if sys_path is not None:
self._sys_path = sys_path
venv = os.getenv('VIRTUAL_ENV')
if venv:
sys_path = get_venv_path(venv)
if sys_path is None:
sys_path = sys.path