[Checkins] SVN: grokcore.component/trunk/src/grokcore/__init__.py Gave the "grokcore" in "grokcore.component" one of those absolutely

Brandon Rhodes brandon at rhodesmill.org
Tue Mar 18 12:31:30 EDT 2008


Log message for revision 84755:
  Gave the "grokcore" in "grokcore.component" one of those absolutely
  magical namespace "__init__.py" files.
  

Changed:
  A   grokcore.component/trunk/src/grokcore/__init__.py

-=-
Added: grokcore.component/trunk/src/grokcore/__init__.py
===================================================================
--- grokcore.component/trunk/src/grokcore/__init__.py	                        (rev 0)
+++ grokcore.component/trunk/src/grokcore/__init__.py	2008-03-18 16:31:29 UTC (rev 84755)
@@ -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