[Zope3-checkins]
SVN: Zope3/trunk/src/zope/app/twisted/controller.py
Make the cmdlines platform safe
Zachery Bir
zbir at urbanape.com
Fri Dec 23 13:05:38 EST 2005
Log message for revision 40998:
Make the cmdlines platform safe
Changed:
U Zope3/trunk/src/zope/app/twisted/controller.py
-=-
Modified: Zope3/trunk/src/zope/app/twisted/controller.py
===================================================================
--- Zope3/trunk/src/zope/app/twisted/controller.py 2005-12-23 18:05:28 UTC (rev 40997)
+++ Zope3/trunk/src/zope/app/twisted/controller.py 2005-12-23 18:05:37 UTC (rev 40998)
@@ -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