[Zope-Checkins] CVS: Zope3/lib/python/Zope/Configuration - __init__.py:1.1.2.5

Jeremy Hylton jeremy@zope.com
Fri, 22 Mar 2002 13:09:24 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/Configuration
In directory cvs.zope.org:/tmp/cvs-serv26485

Modified Files:
      Tag: Zope-3x-branch
	__init__.py 
Log Message:
Add config() to Zope.Configuration.


=== Zope3/lib/python/Zope/Configuration/__init__.py 1.1.2.4 => 1.1.2.5 ===
 Software that wants to provide new config directives calls
 Zope.Configuration.meta.register.
-
-
-
 """
 
 def namespace(suffix):
     return 'http://namespaces.zope.org/'+suffix
+
+import os
+from Zope.Configuration.xmlconfig import XMLConfig
+
+def config(dir):
+    XMLConfig(os.path.join(dir, 'site.zcml'))()
+
+__all__ = ["namespace", "config"]