From e2b8d544d2e0b4717a5564ab8c6226be034b79ed Mon Sep 17 00:00:00 2001 From: craynic Date: Tue, 9 Oct 2018 17:39:55 +0800 Subject: [PATCH] fix virtualenv assertion bug introduced in 999761130e910bb211c75467d66be7db7547e7fe. --- pipenv/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipenv/core.py b/pipenv/core.py index b0cd9aa5..d2ac5db4 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -106,7 +106,7 @@ if PIPENV_NOSPIN: def which(command, location=None, allow_global=False): if not allow_global and location is None: location = project.virtualenv_location or os.environ.get("VIRTUAL_ENV", "") - if not location and os.path.exists(location): + if not (location and os.path.exists(location)): raise RuntimeError("virtualenv not created nor specified") if not allow_global: if os.name == "nt":