From f9cbc65f2d114d6252a1b42f9deb958d54ab7b95 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sun, 30 Sep 2018 14:07:37 +0200 Subject: [PATCH] Return SameEnvironment as a default, fixes #1226, #1196 --- jedi/api/environment.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/jedi/api/environment.py b/jedi/api/environment.py index 38c546b9..7aa16dc8 100644 --- a/jedi/api/environment.py +++ b/jedi/api/environment.py @@ -184,10 +184,7 @@ def get_default_environment(): if virtual_env is not None: return virtual_env - for environment in find_system_environments(): - return environment - - # If no Python Environment is found, use the environment we're already + # If no VirtualEnv is found, use the environment we're already # using. return SameEnvironment()