[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/server/controller.py Make the cmdlines platform safe

Zachery Bir zbir at urbanape.com
Fri Dec 23 13:05:29 EST 2005


Log message for revision 40997:
  Make the cmdlines platform safe
  

Changed:
  U   Zope3/trunk/src/zope/app/server/controller.py

-=-
Modified: Zope3/trunk/src/zope/app/server/controller.py
===================================================================
--- Zope3/trunk/src/zope/app/server/controller.py	2005-12-23 17:35:46 UTC (rev 40996)
+++ Zope3/trunk/src/zope/app/server/controller.py	2005-12-23 18:05:28 UTC (rev 40997)
@@ -26,7 +26,7 @@
 class ZopectlCmd(zdaemon.zdctl.ZDCmd):
 
     def do_debug(self, rest):
-        cmdline = "%s/bin/debugzope" % INSTANCE_HOME
+        cmdline = os.path.join(INSTANCE_HOME, 'bin', 'debugzope')
         os.system(cmdline)
 
     def help_debug(self):
@@ -34,7 +34,8 @@
         print "         debugger object at an interactive Python prompt."
 
     def do_run(self, arg):
-        cmdline = "%s/bin/scriptzope %s" % (INSTANCE_HOME, arg)
+        cmdline = "%s %s" % (
+            os.path.join(INSTANCE_HOME, 'bin', 'scriptzope'), arg)
         os.system(cmdline)
 
     def help_run(self):



More information about the Zope3-Checkins mailing list