Skip to content

Commit

Permalink
Fix: dont call load dot env in shell sub command
Browse files Browse the repository at this point in the history
dot env is always globally loaded.

Fix #6198
  • Loading branch information
oz123 committed Jul 13, 2024
1 parent 7493d18 commit cfdd539
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pipenv/cli/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit cfdd539

Please sign in to comment.