mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-24 17:28:36 +08:00
Check the windows environments in a better way
This commit is contained in:
@@ -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