mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
+1
-1
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user