[Checkins] SVN: zope.app.form/trunk/src/zope/app/__init__.py Made zope.app a namespace package.

Alexander Heavner alex at zope.com
Tue Feb 20 10:20:30 EST 2007


Log message for revision 72711:
  Made zope.app a namespace package.
  

Changed:
  A   zope.app.form/trunk/src/zope/app/__init__.py

-=-
Added: zope.app.form/trunk/src/zope/app/__init__.py
===================================================================
--- zope.app.form/trunk/src/zope/app/__init__.py	2007-02-20 15:17:16 UTC (rev 72710)
+++ zope.app.form/trunk/src/zope/app/__init__.py	2007-02-20 15:20:24 UTC (rev 72711)
@@ -0,0 +1,7 @@
+# this is a namespace package
+try:
+    import pkg_resources
+    pkg_resources.declare_namespace(__name__)
+except ImportError:
+    import pkgutil
+    __path__ = pkgutil.extend_path(__path__, __name__)



More information about the Checkins mailing list