mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2026-10-23 06:17:14 +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:
1 parent
40fc5ab27f
commit
4c430ed536
3 files changed
+32
-9
No files matched your search
@@ -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