From 81623c6b5dd38e4591896c7bf28c98518863b9aa Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Thu, 12 Apr 2018 14:26:17 +0200 Subject: [PATCH] Check the windows environments in a better way --- jedi/api/environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jedi/api/environment.py b/jedi/api/environment.py index 51b9eee8..a7a22e2a 100644 --- a/jedi/api/environment.py +++ b/jedi/api/environment.py @@ -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