Fix prefix comparison for py2

Signed-off-by: Dan Ryan <dan@danryan.co>
This commit is contained in:
Dan Ryan
2018-11-12 13:36:58 -05:00
parent 013e3d0ec2
commit 96cbd58d84
+1 -1
View File
@@ -26,7 +26,7 @@ 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(prefix), sys.prefix)
self.is_venv = not os.path.samefile(os.path.abspath(str(prefix)), sys.prefix)
if not sources:
sources = []
self.sources = sources