From 51f7417c41871c4debca9bcd86507c863e5ba739 Mon Sep 17 00:00:00 2001 From: Frost Ming Date: Wed, 28 Jul 2021 17:09:45 +0800 Subject: [PATCH] fix system which --- pipenv/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pipenv/core.py b/pipenv/core.py index 9c968849..fa844611 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -1615,7 +1615,7 @@ def system_which(command, mult=False): }) result = None try: - c = subprocess_run([_which, command]) + c = subprocess_run(f"{_which} {command}", shell=True) try: # Which Not found... if c.returncode == 127: @@ -1634,7 +1634,7 @@ def system_which(command, mult=False): result = fallback_which(command, allow_global=True) else: if not result: - result = next(iter([c.out, c.err]), "").split("\n") + result = next(iter([c.stdout, c.stderr]), "").split("\n") result = next(iter(result)) if not mult else result return result if not result: