From a1c5cb1ed99c38e347bdc6fb6a80711a991faf67 Mon Sep 17 00:00:00 2001 From: Tzu-ping Chung Date: Wed, 4 Jul 2018 22:16:17 +0800 Subject: [PATCH] Fix subprocess usage for Python 2 --- pipenv/shells.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pipenv/shells.py b/pipenv/shells.py index 5961310c..0081ef5d 100644 --- a/pipenv/shells.py +++ b/pipenv/shells.py @@ -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):