1
0
forked from VimPlug/jedi

Check for specific Python versions first on unix, see davidhalter/jedi-vim#870

This commit is contained in:
Dave Halter
2019-02-22 00:32:27 +01:00
parent a79d386eba
commit 8d313e014f

View File

@@ -210,7 +210,10 @@ def _try_get_same_env():
checks = (r'Scripts\python.exe', 'python.exe')
else:
# For unix it looks like Python is always in a bin folder.
checks = ('bin/python',)
checks = (
'bin/python%s.%s' % (sys.version_info[0], sys.version[1]),
'bin/python',
)
for check in checks:
guess = os.path.join(sys.exec_prefix, check)
if os.path.isfile(guess):