mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
put in more proper logic for int conversion when reading from the PIPENV_TIMEOUT variable
This commit is contained in:
@@ -36,5 +36,7 @@ if PIPENV_VENV_IN_PROJECT:
|
||||
if os.name == 'nt':
|
||||
PIPENV_NOSPIN = True
|
||||
|
||||
_pipenv_timout_raw = os.environ.get('PIPENV_TIMEOUT')
|
||||
|
||||
# Tells pipenv how long to wait for virtualenvs to be created in seconds
|
||||
PIPENV_TIMEOUT = int(os.environ.get('PIPENV_TIMEOUT')) or 120
|
||||
PIPENV_TIMEOUT = int(_pipenv_timout_raw) if _pipenv_timout_raw is not None else 120
|
||||
|
||||
Reference in New Issue
Block a user