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":