Merge remote-tracking branch 'origin/master' into typeshed
This commit is contained in:
commit
05eb06d91b
5 files changed
+56
-2
No files matched your search
@@ -334,7 +334,10 @@ def get_system_environment(version):
|
||||
|
||||
if os.name == 'nt':
|
||||
for exe in _get_executables_from_windows_registry(version):
|
||||
return Environment(exe)
|
||||
try:
|
||||
return Environment(exe)
|
||||
except InvalidPythonEnvironment:
|
||||
pass
|
||||
raise InvalidPythonEnvironment("Cannot find executable python%s." % version)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user