From 69d785d4a2b34691845a0d67cc69e7109975c176 Mon Sep 17 00:00:00 2001 From: Dan Ryan Date: Tue, 19 May 2020 15:42:01 -0400 Subject: [PATCH] Use `samefile` to compare source paths Signed-off-by: Dan Ryan --- pipenv/environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipenv/environment.py b/pipenv/environment.py index 9bf1116f..5970567a 100644 --- a/pipenv/environment.py +++ b/pipenv/environment.py @@ -723,7 +723,7 @@ class Environment(object): ) if match is not None: if req.editable and self.find_egg(match): - return req.line_instance.path == match.location + return vistir.compat.samefile(req.line_instance.path, match.location) elif match.has_metadata("direct_url.json"): direct_url_metadata = json.loads(match.get_metadata("direct_url.json")) commit_id = direct_url_metadata.get("vcs_info", {}).get("commit_id", "")