From a4aca53b5d02a4168214a487714d9836c9415a0c Mon Sep 17 00:00:00 2001 From: Dan Ryan Date: Wed, 8 Nov 2017 01:33:25 -0500 Subject: [PATCH] Check if virtualenv location really exists - Check if virtualenv_location exists as an os path as part of the virtualenv_exists check - Fixes #969 --- pipenv/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipenv/project.py b/pipenv/project.py index 027da542..a2c7c593 100644 --- a/pipenv/project.py +++ b/pipenv/project.py @@ -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: