[Checkins] SVN: zc.table/trunk/src/zc/__init__.py degrade more
reasonably if pkg_resources is not available
Fred L. Drake, Jr.
fdrake at gmail.com
Tue Aug 29 10:03:43 EDT 2006
Log message for revision 69837:
degrade more reasonably if pkg_resources is not available
Changed:
U zc.table/trunk/src/zc/__init__.py
-=-
Modified: zc.table/trunk/src/zc/__init__.py
===================================================================
--- zc.table/trunk/src/zc/__init__.py 2006-08-29 12:53:31 UTC (rev 69836)
+++ zc.table/trunk/src/zc/__init__.py 2006-08-29 14:03:42 UTC (rev 69837)
@@ -2,4 +2,5 @@
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
- pass
+ import pkgutil
+ __path__ = pkgutil.extend_path(__path__, __name__)
More information about the Checkins
mailing list