Skip to content

Commit

Permalink
fix pipenv shell, close #4828
Browse files Browse the repository at this point in the history
  • Loading branch information
frostming committed Nov 5, 2021
1 parent 2da61b0 commit e368271
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions news/4828.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix a regression that ``pipenv shell`` fails to start a subshell.
2 changes: 1 addition & 1 deletion pipenv/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2306,7 +2306,7 @@ def do_shell(project, three=None, python=False, fancy=False, shell_args=None, py

from .shells import choose_shell

shell = choose_shell()
shell = choose_shell(project)
click.echo(fix_utf8("Launching subshell in virtual environment..."), err=True)

fork_args = (
Expand Down
4 changes: 2 additions & 2 deletions pipenv/shells.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ def _detect_emulator():


def choose_shell(project):
emulator = project.PIPENV_EMULATOR.lower() or _detect_emulator()
type_, command = project.detect_info()
emulator = project.s.PIPENV_EMULATOR.lower() or _detect_emulator()
type_, command = detect_info(project)
shell_types = SHELL_LOOKUP[type_]
for key in emulator.split(","):
key = key.strip().lower()
Expand Down

0 comments on commit e368271

Please sign in to comment.