Merge pull request #1041 from techalchemy/bugfix/virtualenv-bin-python-check

Check if virtualenv location really exists
This commit is contained in:
Nate Prewitt
2017-11-07 23:26:19 -08:00
committed by GitHub
+1 -1
View File
@@ -103,7 +103,7 @@ class Project(object):
@property
def virtualenv_exists(self):
# TODO: Decouple project from existence of Pipfile.
if self.pipfile_exists:
if self.pipfile_exists and os.path.exists(self.virtualenv_location):
if os.name == 'nt':
extra = ['Scripts', 'activate.bat']
else: