summaryrefslogtreecommitdiff
path: root/pkg_resources.py
diff options
context:
space:
mode:
Diffstat (limited to 'pkg_resources.py')
-rw-r--r--pkg_resources.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg_resources.py b/pkg_resources.py
index 07b5675e..584e1bc6 100644
--- a/pkg_resources.py
+++ b/pkg_resources.py
@@ -1915,6 +1915,7 @@ class Distribution(object):
self.check_version_conflict()
best, pos = 0, -1
for p,item in enumerate(path):
+ item = normalize_path(item)
if loc.startswith(item) and len(item)>best and loc<>item:
best, pos = len(item), p
if pos==-1:
@@ -1924,7 +1925,6 @@ class Distribution(object):
path.insert(pos,loc)
-
def check_version_conflict(self):
if self.key=='setuptools':
return # ignore the inevitable setuptools self-conflicts :(