From 9eabde0bbfa3dc61d71fc1efbc741047dc417663 Mon Sep 17 00:00:00 2001 From: Dan Ryan Date: Mon, 12 Nov 2018 16:31:53 -0500 Subject: [PATCH] no samefile for windows python2.7 Signed-off-by: Dan Ryan --- pipenv/environment.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pipenv/environment.py b/pipenv/environment.py index b96f2fbe..9315447c 100644 --- a/pipenv/environment.py +++ b/pipenv/environment.py @@ -26,7 +26,8 @@ class Environment(object): super(Environment, self).__init__() self._modules = {'pkg_resources': pkg_resources, 'pipenv': pipenv} self.base_working_set = base_working_set if base_working_set else BASE_WORKING_SET - self.is_venv = not os.path.samefile(os.path.abspath(str(prefix)), sys.prefix) + prefix = os.path.normcase(os.path.normpath(os.path.abspath(str(prefix)))) + self.is_venv = not prefix == os.path.normcase(os.path.normpath(sys.prefix)) if not sources: sources = [] self.sources = sources