Use exists() to check for virtualenv instead

This commit is contained in:
Tzu-ping Chung
2018-07-05 02:59:12 +08:00
parent 341297272a
commit 676d5a2f75
+1 -1
View File
@@ -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