mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Merge pull request #624 from AlJohri/ensure-project-pipenv-shell
run ensure_project in cli do_shell method
This commit is contained in:
+3
-3
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user