[Checkins] SVN: z3c.vcsync/trunk/src/z3c/__init__.py Make this a
true namespace package.
Martijn Faassen
faassen at infrae.com
Thu Dec 13 21:13:55 EST 2007
Log message for revision 82283:
Make this a true namespace package.
Changed:
U z3c.vcsync/trunk/src/z3c/__init__.py
-=-
Modified: z3c.vcsync/trunk/src/z3c/__init__.py
===================================================================
--- z3c.vcsync/trunk/src/z3c/__init__.py 2007-12-13 18:25:47 UTC (rev 82282)
+++ z3c.vcsync/trunk/src/z3c/__init__.py 2007-12-14 02:13:52 UTC (rev 82283)
@@ -1 +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