From fdffd9f086d180d65605c9828d3520ac0a9400ac Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Wed, 1 Feb 2017 20:42:00 -0500 Subject: [PATCH] magic sauce --- pipenv/environments.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pipenv/environments.py b/pipenv/environments.py index d4184d4d..43f6b24f 100644 --- a/pipenv/environments.py +++ b/pipenv/environments.py @@ -10,4 +10,8 @@ PIPENV_VENV_IN_PROJECT = os.environ.get('PIPENV_SHELL_COMPAT') PIPENV_COLORBLIND = os.environ.get('PIPENV_COLORBLIND') # User-configuraable max-depth for Pipfile searching. -PIPENV_MAX_DEPTH = int(os.environ.get('PIPENV_MAX_DEPTH', '3')) \ No newline at end of file +PIPENV_MAX_DEPTH = int(os.environ.get('PIPENV_MAX_DEPTH', '3')) + +# Use shell compatibility mode when using venv in project mode. +if PIPENV_VENV_IN_PROJECT: + PIPENV_SHELL_COMPAT = True \ No newline at end of file