Skip to content

Commit

Permalink
Merge pull request #2515 from pypa/bugfix/shell-py27
Browse files Browse the repository at this point in the history
Fix subprocess usage for Python 2
  • Loading branch information
techalchemy authored Jul 4, 2018
2 parents 2190350 + a1c5cb1 commit 389bd63
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pipenv/shells.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ def _handover(cmd, args):
if os.name != "nt":
os.execvp(cmd, args)
else:
proc = subprocess.run(args, shell=True, universal_newlines=True)
sys.exit(proc.returncode)
sys.exit(subprocess.call(args, shell=True, universal_newlines=True))


class Shell(object):
Expand Down

0 comments on commit 389bd63

Please sign in to comment.