From dff93b80aaaf4259bd643c470ddaf1964cb53ac4 Mon Sep 17 00:00:00 2001 From: Jamie Connolly Date: Wed, 1 Nov 2017 15:18:28 +0000 Subject: [PATCH] Use the default PYENV_ROOT if it is not set --- pipenv/environments.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pipenv/environments.py b/pipenv/environments.py index 3e763bf6..9fd777cc 100644 --- a/pipenv/environments.py +++ b/pipenv/environments.py @@ -81,9 +81,9 @@ PIPENV_INSTALL_TIMEOUT = 60 * 15 PIPENV_DONT_USE_PYENV = os.environ.get('PIPENV_DONT_USE_PYENV') -PYENV_ROOT = os.environ.get('PYENV_ROOT') +PYENV_ROOT = os.environ.get('PYENV_ROOT', os.path.expanduser('~/.pyenv')) -PYENV_INSTALLED = (bool(os.environ.get('PYENV_SHELL')) or bool(PYENV_ROOT)) +PYENV_INSTALLED = (bool(os.environ.get('PYENV_SHELL')) or bool(os.environ.get('PYENV_ROOT'))) SESSION_IS_INTERACTIVE = bool(os.isatty(sys.stdout.fileno()))