mirror of
https://github.com/davidhalter/jedi.git
synced 2026-03-01 02:52:19 +08:00
Merge pull request #156 from tkf/fix-get_sys_path
Make VIRTUAL_ENV actually importable
This commit is contained in:
@@ -279,9 +279,8 @@ def get_sys_path():
|
|||||||
venv, 'lib', 'python%d.%d' % sys.version_info[:2], 'site-packages')
|
venv, 'lib', 'python%d.%d' % sys.version_info[:2], 'site-packages')
|
||||||
sys_path.insert(0, p)
|
sys_path.insert(0, p)
|
||||||
|
|
||||||
p = sys.path[1:]
|
check_virtual_env(sys.path)
|
||||||
check_virtual_env(p)
|
return [p for p in sys.path if p != ""]
|
||||||
return p
|
|
||||||
|
|
||||||
|
|
||||||
@cache.memoize_default([])
|
@cache.memoize_default([])
|
||||||
|
|||||||
Reference in New Issue
Block a user