Skip to content

Commit

Permalink
Merge pull request #6327 from samer-shah/fix_running_pipenv_shell
Browse files Browse the repository at this point in the history
Fix File path by removing the dot
  • Loading branch information
oz123 authored Dec 16, 2024
2 parents c4c1f76 + ec3a813 commit 847b42f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions news/6327.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix incorrect path for 'pipenv shell'
2 changes: 1 addition & 1 deletion pipenv/shells.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def _get_activate_script(cmd, venv):
if suffix == "nu":
return f"overlay use {venv_location}"
elif suffix == ".ps1":
return f". {venv_location}\\Scripts\\Activate.{suffix}"
return f". {venv_location}\\Scripts\\Activate{suffix}"

# The leading space can make history cleaner in some shells.
return f" {command} {venv_location}/bin/activate{suffix}"
Expand Down

0 comments on commit 847b42f

Please sign in to comment.