mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2026-01-24 01:51:52 +08:00
Improve JediDebugInfo for envs (#858)
Improve JediDebugInfo for envs This is taken out of https://github.com/davidhalter/jedi-vim/pull/836.
This commit is contained in:
committed by
Dave Halter
parent
40fc5ab27f
commit
4c430ed536
@@ -193,6 +193,13 @@ def get_environment(use_cache=True):
|
||||
return environment
|
||||
|
||||
|
||||
def get_known_environments():
|
||||
"""Get known Jedi environments."""
|
||||
envs = list(jedi.api.environment.find_virtualenvs())
|
||||
envs.extend(jedi.api.environment.find_system_environments())
|
||||
return envs
|
||||
|
||||
|
||||
@catch_and_print_exceptions
|
||||
def get_script(source=None, column=None):
|
||||
jedi.settings.additional_dynamic_modules = [
|
||||
|
||||
Reference in New Issue
Block a user