mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
Merge remote-tracking branch 'origin/master' into typeshed
This commit is contained in:
@@ -190,8 +190,9 @@ def get_default_environment():
|
|||||||
|
|
||||||
|
|
||||||
def get_cached_default_environment():
|
def get_cached_default_environment():
|
||||||
|
var = os.environ.get('VIRTUAL_ENV')
|
||||||
environment = _get_cached_default_environment()
|
environment = _get_cached_default_environment()
|
||||||
if environment.path != os.environ.get('VIRTUAL_ENV'):
|
if var and var != environment.path:
|
||||||
_get_cached_default_environment.clear_cache()
|
_get_cached_default_environment.clear_cache()
|
||||||
return _get_cached_default_environment()
|
return _get_cached_default_environment()
|
||||||
return environment
|
return environment
|
||||||
|
|||||||
Reference in New Issue
Block a user