Merge pull request #624 from AlJohri/ensure-project-pipenv-shell

run ensure_project in cli do_shell method
This commit is contained in:
2017-09-21 10:18:41 -04:00
committed by GitHub
+3 -3
View File
@@ -1678,9 +1678,6 @@ def lock(three=None, python=False, verbose=False, requirements=False, clear=Fals
def do_shell(three=None, python=False, compat=False, shell_args=None):
# Ensure that virtualenv is available.
ensure_project(three=three, python=python, validate=False)
# Set an environment variable, so we know we're in the environment.
os.environ['PIPENV_ACTIVE'] = '1'
@@ -1785,6 +1782,9 @@ def shell(three=None, python=False, compat=False, shell_args=None, anyway=False)
sys.exit(1)
# Ensure that virtualenv is available.
ensure_project(three=three, python=python, validate=False)
# Load .env file.
load_dot_env()