Skip to content

Commit

Permalink
Fix subprocess usage for Python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr committed Jul 4, 2018
1 parent 2190350 commit a1c5cb1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pipenv/shells.py
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 a1c5cb1

Please sign in to comment.