Use the default PYENV_ROOT if it is not set

This commit is contained in:
Jamie Connolly
2017-11-01 15:18:28 +00:00
parent 45cb2a96ec
commit dff93b80aa
+2 -2
View File
@@ -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()))