mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Fix venv discovery
If we don't have a project, we don't have an associated environment.
This commit is contained in:
+2
-2
@@ -216,8 +216,8 @@ class Project(object):
|
||||
return bool(self.requirements_location)
|
||||
|
||||
def is_venv_in_project(self):
|
||||
return (
|
||||
PIPENV_VENV_IN_PROJECT or
|
||||
return PIPENV_VENV_IN_PROJECT or (
|
||||
self.project_directory and
|
||||
os.path.exists(os.path.join(self.project_directory, '.venv'))
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user