pkg_resources.declare_namespace inconsistency vs pkgutil.extend_path

Feb. 28, 2008
3:19 a.m.
import paste paste.__path__ ['/usr/local/lib/python2.5/site-packages/Paste-1.6-py2.5.egg/paste', '/usr/local/lib/python2.5/site-packages/PasteDeploy-1.3.1-py2.5.egg/
Paste uses pkg_resources.declare_namespace: >>> import sys paste', '/usr/local/lib/python2.5/site-packages/PasteScript-1.6.2- py2.5.egg/paste']
del sys.modules['paste'] import paste paste.__path__ ['/usr/local/lib/python2.5/site-packages/Paste-1.6-py2.5.egg/paste']
Whereas pkgutil.extend_path does the right thing and restores paste.__path__ to contain the 3 paths -- Philip Jenvey
6231
Age (days ago)
6231
Last active (days ago)
0 comments
1 participants
participants (1)
-
Philip Jenvey