Commit 720fbd0c authored by PJ Eby's avatar PJ Eby

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
parent 471ae346
...@@ -1429,8 +1429,8 @@ def _handle_ns(packageName, path_item): ...@@ -1429,8 +1429,8 @@ def _handle_ns(packageName, path_item):
handler = _find_adapter(_namespace_handlers, importer) handler = _find_adapter(_namespace_handlers, importer)
subpath = handler(importer,path_item,packageName,module) subpath = handler(importer,path_item,packageName,module)
if subpath is not None: if subpath is not None:
module.__path__.append(subpath) path = module.__path__; path.append(subpath)
loader.load_module(packageName) loader.load_module(packageName); module.__path__ = path
return subpath return subpath
def declare_namespace(packageName): def declare_namespace(packageName):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment