1
0
forked from VimPlug/jedi

Cache default environment

This commit is contained in:
Dave Halter
2018-04-15 15:28:05 +02:00
parent bcd05f560e
commit a972d49e88
3 changed files with 10 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ from collections import namedtuple
from distutils.spawn import find_executable
from jedi._compatibility import GeneralizedPopen
from jedi.cache import memoize_method
from jedi.cache import memoize_method, time_cache
from jedi.evaluate.compiled.subprocess import get_subprocess, \
EvaluatorSameProcess, EvaluatorSubprocess
@@ -170,6 +170,11 @@ def get_default_environment():
return SameEnvironment()
@time_cache("_default_environment_validity")
def get_cached_default_environment():
return get_default_environment()
def find_virtualenvs(paths=None, **kwargs):
"""
:param paths: A list of paths in your file system to be scanned for