SVN: CMF/trunk/__init__.py - added support for using the CMF checkout as Products namespace package
Yvo Schubbe <[email protected]> Mon, 28 Apr 2008 10:35:56 -0400 (EDT)
| Newsgroups | gmane.comp.web.zope.cmf.cvs |
|---|---|
| Message-ID | <20080428143556.0BAD82037F7__16314.7561987445$1209393430$gmane$org@mail.zope.org> |
Log message for revision 85803:
- added support for using the CMF checkout as Products namespace package
Changed:
A CMF/trunk/__init__.py
-=-
Added: CMF/trunk/__init__.py
===================================================================
--- CMF/trunk/__init__.py (rev 0)
+++ CMF/trunk/__init__.py 2008-04-28 14:35:53 UTC (rev 85803)
@@ -0,0 +1,6 @@
+# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
+try:
+ __import__('pkg_resources').declare_namespace(__name__)
+except ImportError:
+ from pkgutil import extend_path
+ __path__ = extend_path(__path__, __name__)
Property changes on: CMF/trunk/__init__.py
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native