aboutsummaryrefslogtreecommitdiffstats
path: root/pkg_resources/__init__.py
diff options
context:
space:
mode:
authorTzu-ping Chung <uranusjr@gmail.com>2018-10-24 09:52:56 +0800
committerTzu-ping Chung <uranusjr@gmail.com>2018-10-25 00:36:03 +0800
commit84f1abafd3a707b464f039892ef48b9e282d0d4a (patch)
treee8d1242183c0b4ca431b8426cf173c66e60d0d23 /pkg_resources/__init__.py
parent8c22c3b5ac0a5a293b03b79686e53f885d71cba4 (diff)
downloadexternal_python_setuptools-84f1abafd3a707b464f039892ef48b9e282d0d4a.tar.gz
external_python_setuptools-84f1abafd3a707b464f039892ef48b9e282d0d4a.tar.bz2
external_python_setuptools-84f1abafd3a707b464f039892ef48b9e282d0d4a.zip
Call os.path.normpath to normalize paths for comp
Diffstat (limited to 'pkg_resources/__init__.py')
-rw-r--r--pkg_resources/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py
index 3ae2c5cd..2b2442f5 100644
--- a/pkg_resources/__init__.py
+++ b/pkg_resources/__init__.py
@@ -2228,7 +2228,7 @@ register_namespace_handler(object, null_ns_handler)
def normalize_path(filename):
"""Normalize a file/dir name for comparison purposes"""
- return os.path.normcase(os.path.realpath(filename))
+ return os.path.normcase(os.path.normpath(os.path.realpath(filename)))
def _normalize_cached(filename, _cache={}):