From fd96131547ffa092ea2948d66c928944a47283a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Fleschenberg?= Date: Sun, 17 Sep 2017 17:04:12 +0200 Subject: [PATCH] Improve pyenv detection ``PYENV_ROOT`` is not guaranteed to be set. I hope ``PYENV_SHELL`` is. --- pipenv/environments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipenv/environments.py b/pipenv/environments.py index c5bf94c6..f56af88c 100644 --- a/pipenv/environments.py +++ b/pipenv/environments.py @@ -51,4 +51,4 @@ PIPENV_TIMEOUT = int(os.environ.get('PIPENV_TIMEOUT', 120)) PIPENV_INSTALL_TIMEOUT = 60 * 15 -PYENV_INSTALLED = os.environ.get('PYENV_ROOT') \ No newline at end of file +PYENV_INSTALLED = bool(os.environ.get('PYENV_SHELL'))