diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2015-11-22 19:18:37 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-11-22 19:18:37 -0500 |
| commit | 40436edb86b034979b716695ec68fe55bb656d79 (patch) | |
| tree | 430d5359ae985ead0fd4ac15c8fef107f3faac58 /pkg_resources | |
| parent | b6a3ccf987ce2f8d13e1520563223bd76460744a (diff) | |
| download | python-setuptools-git-40436edb86b034979b716695ec68fe55bb656d79.tar.gz | |
Only detect a path as an unpacked egg if it also has an EGG-INFO directory. Fixes #462.
Diffstat (limited to 'pkg_resources')
| -rw-r--r-- | pkg_resources/__init__.py | 1 |
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): |
