correctly find python binary in non-Windows environments

This commit is contained in:
Alan Hamlett 2015-10-01 15:19:58 -07:00
parent a523b3aa4d
commit 8f7837269a

View File

@ -111,10 +111,9 @@ def python_binary():
# look for python in PATH and common install locations
paths = [
"pythonw",
"python",
"/usr/local/bin/python",
"/usr/bin/python",
'/',
'/usr/local/bin/',
'/usr/bin/',
]
for path in paths:
path = find_python_in_folder(path)