mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Use exists() to check for virtualenv instead
This commit is contained in:
+1
-1
@@ -280,7 +280,7 @@ class Project(object):
|
||||
if (
|
||||
fnmatch.fnmatch('A', 'a')
|
||||
or self.is_venv_in_project()
|
||||
or self._get_virtualenv_location(venv_name)
|
||||
or get_workon_home().joinpath(venv_name).exists()
|
||||
):
|
||||
return clean_name, encoded_hash
|
||||
|
||||
|
||||
Reference in New Issue
Block a user