summaryrefslogtreecommitdiff
path: root/pkg_resources.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2005-08-19 01:01:53 +0000
committerPJ Eby <distutils-sig@python.org>2005-08-19 01:01:53 +0000
commit720fbd0c7cfadc63870d088440fac3ab1f07178e (patch)
tree4ff311a70b478f6b16e3f61151b0fbc0c29fccec /pkg_resources.py
parent471ae3465a5fe8e1cd2e15ee989e7a91c163acf0 (diff)
downloadpython-setuptools-git-720fbd0c7cfadc63870d088440fac3ab1f07178e.tar.gz
Fix namespace packages not getting fixed up when the eggs are zipped and
loaded late (i.e. via require). Thanks to Walter Doerwald for the bug report. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041208
Diffstat (limited to 'pkg_resources.py')
-rw-r--r--pkg_resources.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg_resources.py b/pkg_resources.py
index 9b91092a..60415c08 100644
--- a/pkg_resources.py
+++ b/pkg_resources.py
@@ -1429,8 +1429,8 @@ def _handle_ns(packageName, path_item):
handler = _find_adapter(_namespace_handlers, importer)
subpath = handler(importer,path_item,packageName,module)
if subpath is not None:
- module.__path__.append(subpath)
- loader.load_module(packageName)
+ path = module.__path__; path.append(subpath)
+ loader.load_module(packageName); module.__path__ = path
return subpath
def declare_namespace(packageName):