Merge pull request #558 from evhub/master

Fix windows virtualenv issue
This commit is contained in:
Anthony Sottile 2017-07-09 14:09:53 -07:00 committed by GitHub
commit 87e07a5b82

View file

@ -86,8 +86,9 @@ def get_default_version():
def norm_version(version):
if os.name == 'nt': # pragma: no cover (windows)
# Try looking up by name
if find_executable(version) and find_executable(version) != version:
return version
version_exec = find_executable(version)
if version_exec and version_exec != version:
return version_exec
# If it is in the form pythonx.x search in the default
# place on windows