[Zope-Checkins] CVS: Zope/lib/python/Controller - ZctlLib.py:1.1.2.5

Chris McDonough chrism@zope.com
Wed, 9 Oct 2002 01:03:24 -0400


Update of /cvs-repository/Zope/lib/python/Controller
In directory cvs.zope.org:/tmp/cvs-serv11991

Modified Files:
      Tag: chrism-install-branch
	ZctlLib.py 
Log Message:
Fix --config-location argument quoting bug.


=== Zope/lib/python/Controller/ZctlLib.py 1.1.2.4 => 1.1.2.5 ===
--- Zope/lib/python/Controller/ZctlLib.py:1.1.2.4	Sun Oct  6 17:42:52 2002
+++ Zope/lib/python/Controller/ZctlLib.py	Wed Oct  9 01:03:24 2002
@@ -119,7 +119,10 @@
 
         self._report('Starting Zope')
         args = self._getCommandLineArgs()
-        config_location = '--config-location="%s"' % CONFIG_LOCATION
+        loc = CONFIG_LOCATION
+        if loc.find(' ') != -1:
+            loc = '"%s"' % loc
+        config_location = '--config-location=%s' % loc
         args = [ZOPE_PY_LOCATION] + [config_location] + args + [arg]
         wait = self._getDirective('debug_mode')
         try: