Skip to content

Commit

Permalink
Return SameEnvironment as a default, fixes #1226, #1196
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhalter committed Sep 30, 2018
1 parent e1f9624 commit f9cbc65
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions jedi/api/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit f9cbc65

Please sign in to comment.