1
0
forked from VimPlug/jedi

Use Scripts for virtualenvs instead of bin for windows

Thanks @blueyed for the hint.
This commit is contained in:
Dave Halter
2018-01-25 19:55:10 +01:00
parent 68f840de60
commit 33c9d21e35

View File

@@ -187,7 +187,9 @@ def _get_executable_path(path, safe=True):
"""
Returns None if it's not actually a virtual env.
"""
bin_folder = os.path.join(path, 'bin')
bin_name = 'Scripts' if os.name == 'nt' else 'bin'
bin_folder = os.path.join(path, bin_name)
activate = os.path.join(bin_folder, 'activate')
python = os.path.join(bin_folder, 'python')
if not all(os.path.exists(p) for p in (activate, python)):