[Zope3-checkins] SVN: zope.testing/trunk/src/zope/__init__.py Namespace package boilerplate.

Tres Seaver tseaver at palladion.com
Wed Apr 5 07:52:20 EDT 2006


Log message for revision 66512:
  Namespace package boilerplate.

Changed:
  U   zope.testing/trunk/src/zope/__init__.py

-=-
Modified: zope.testing/trunk/src/zope/__init__.py
===================================================================
--- zope.testing/trunk/src/zope/__init__.py	2006-04-05 11:51:21 UTC (rev 66511)
+++ zope.testing/trunk/src/zope/__init__.py	2006-04-05 11:52:19 UTC (rev 66512)
@@ -1 +1,7 @@
-#
+# namespace package boilerplate
+try:
+    __import__('pkg_resources').declare_namespace(__name__)
+except ImportError, e:
+    from pkgutil import extend_path
+    __path__ = extend_path(__path__, __name__)
+



More information about the Zope3-Checkins mailing list