Check the windows environments in a better way

This commit is contained in:
Dave Halter
2018-04-12 14:26:17 +02:00
parent 27419be56d
commit 81623c6b5d

View File

@@ -306,7 +306,7 @@ def _is_safe(executable_path):
# it's likely an attacker or some Python that was not properly
# installed in the system.
for environment in find_python_environments():
if environment.executable == executable_path:
if environment.executable == real_path:
return True
return False