diff options
Diffstat (limited to 'pkg_resources.py')
-rw-r--r-- | pkg_resources.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg_resources.py b/pkg_resources.py index 6679a109..92fef2c0 100644 --- a/pkg_resources.py +++ b/pkg_resources.py @@ -2263,7 +2263,8 @@ class Distribution(object): or modname in _namespace_packages ): continue - + if modname in ('pkg_resources', 'setuptools', 'site'): + continue fn = getattr(sys.modules[modname], '__file__', None) if fn and normalize_path(fn).startswith(loc): continue |