Check the windows environments in a better way
This commit is contained in:
1 parent
27419be56d
commit
81623c6b5d
1 file changed
+1
-1
@@ -306,7 +306,7 @@ def _is_safe(executable_path):
|
|||||||
# it's likely an attacker or some Python that was not properly
|
# it's likely an attacker or some Python that was not properly
|
||||||
# installed in the system.
|
# installed in the system.
|
||||||
for environment in find_python_environments():
|
for environment in find_python_environments():
|
||||||
if environment.executable == executable_path:
|
if environment.executable == real_path:
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user