diff options
-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 |