[Zope3-checkins] SVN: Zope3/branches/Zope-3.1/bin/mkz make
mkzopeinstance work for Debian packages (collector #436);
Fred L. Drake, Jr.
fdrake at gmail.com
Tue Aug 9 11:01:06 EDT 2005
Log message for revision 37806:
make mkzopeinstance work for Debian packages (collector #436);
patch contributed by Philipp Weitershausen; backported from trunk rev. 37805
Changed:
U Zope3/branches/Zope-3.1/bin/mkzeoinstance
U Zope3/branches/Zope-3.1/bin/mkzopeinstance
-=-
Modified: Zope3/branches/Zope-3.1/bin/mkzeoinstance
===================================================================
--- Zope3/branches/Zope-3.1/bin/mkzeoinstance 2005-08-09 14:56:17 UTC (rev 37805)
+++ Zope3/branches/Zope-3.1/bin/mkzeoinstance 2005-08-09 15:01:06 UTC (rev 37806)
@@ -30,8 +30,11 @@
sys.path.insert(0, d)
break
else:
- print >>sys.stderr, "Could not locate ZODB software installation!"
- sys.exit(1)
+ try:
+ import ZEO
+ except ImportError:
+ print >>sys.stderr, "Could not locate ZODB software installation!"
+ sys.exit(1)
from ZEO.mkzeoinst import ZEOInstanceBuilder
Modified: Zope3/branches/Zope-3.1/bin/mkzopeinstance
===================================================================
--- Zope3/branches/Zope-3.1/bin/mkzopeinstance 2005-08-09 14:56:17 UTC (rev 37805)
+++ Zope3/branches/Zope-3.1/bin/mkzopeinstance 2005-08-09 15:01:06 UTC (rev 37806)
@@ -32,8 +32,11 @@
sys.path.insert(0, d)
break
else:
- print >>sys.stderr, "Could not locate Zope software installation!"
- sys.exit(1)
+ try:
+ import zope.app.server
+ except ImportError:
+ print >>sys.stderr, "Could not locate Zope software installation!"
+ sys.exit(1)
from zope.app.server.mkzopeinstance import main
More information about the Zope3-Checkins
mailing list