From cfdd5396a94239d4b1889224f03f879c56839038 Mon Sep 17 00:00:00 2001 From: Oz Tiram Date: Sun, 14 Jul 2024 00:00:56 +0200 Subject: [PATCH] Fix: dont call load dot env in shell sub command dot env is always globally loaded. Fix #6198 --- pipenv/cli/command.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pipenv/cli/command.py b/pipenv/cli/command.py index 8874a6f321..a7c65f4f07 100644 --- a/pipenv/cli/command.py +++ b/pipenv/cli/command.py @@ -390,8 +390,7 @@ def shell(state, fancy=False, shell_args=None, anyway=False, quiet=False): "New shell not activated to avoid nested environments." ) sys.exit(1) - # Load .env file. - load_dot_env(state.project) + # Use fancy mode for Windows or pwsh on *nix. if ( os.name == "nt"