[Zodb-checkins] CVS: ZODB3/zdaemon - __init__.py:1.7

Guido van Rossum guido@python.org
Fri, 17 Jan 2003 14:18:01 -0500


Update of /cvs-repository/ZODB3/zdaemon
In directory cvs.zope.org:/tmp/cvs-serv5360

Modified Files:
	__init__.py 
Log Message:
Sigh.  After changing all the places that assumed zdaemon exported
run(), I realized that we'd like ZODB3 to work with Zope 2.6 (or even
2.5) as well.  But I really don't want "import zdaemon" to imply
"import zdaemon.Daemon", so I'm adding a run() function that has the
import inside itself.


=== ZODB3/zdaemon/__init__.py 1.6 => 1.7 ===
--- ZODB3/zdaemon/__init__.py:1.6	Fri Jan 17 10:26:37 2003
+++ ZODB3/zdaemon/__init__.py	Fri Jan 17 14:17:58 2003
@@ -13,3 +13,7 @@
 #
 ##############################################################################
 """zdaemon -- a package to manage a daemon application."""
+
+def run(*args):
+    import zdaemon.Daemon
+    zdaemon.Daemon.run(*args)