mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
no samefile for windows python2.7
Signed-off-by: Dan Ryan <dan@danryan.co>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user