diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2020-07-03 12:55:46 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2020-07-03 12:56:39 -0400 |
commit | 9372bf7d7f63136758196dd86688f00602b7a494 (patch) | |
tree | 577507161ece9265d6c47f92b0d7fa2dcb00f147 | |
parent | 965ec0df1ffa98ba5d8913a2770daaf5b92b0a0d (diff) | |
download | python-setuptools-git-bugfix/2129-better-egg-detection.tar.gz |
Keep the full path for each entry when enumerating entries for a candidate path.bugfix/2129-better-egg-detection
-rw-r--r-- | pkg_resources/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py index 3c826eb0..5df23e5b 100644 --- a/pkg_resources/__init__.py +++ b/pkg_resources/__init__.py @@ -2057,7 +2057,10 @@ def find_on_path(importer, path_item, only=False): ) return - entries = safe_listdir(path_item) + entries = ( + os.path.join(path_item, child) + for child in safe_listdir(path_item) + ) # for performance, before sorting by version, # screen entries for only those that will yield |