mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-09 13:32:20 +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
|
||||
# installed in the system.
|
||||
for environment in find_python_environments():
|
||||
if environment.executable == executable_path:
|
||||
if environment.executable == real_path:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user