summaryrefslogtreecommitdiff
path: root/pkg_resources
diff options
context:
space:
mode:
Diffstat (limited to 'pkg_resources')
-rw-r--r--pkg_resources/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py
index 0c024f1b..8841ee63 100644
--- a/pkg_resources/__init__.py
+++ b/pkg_resources/__init__.py
@@ -2288,6 +2288,7 @@ def _is_unpacked_egg(path):
"""
return (
path.lower().endswith('.egg')
+ and os.path.isdir(os.path.join(path, 'EGG-INFO'))
)
def _set_parent_ns(packageName):