[Checkins] SVN: grokproject/trunk/grokproject/template_paste/src/+package+/startup.py_tmpl use os-specific path separator

Michael Haubenwallner michael at d2m.at
Tue Jan 27 10:03:18 EST 2009


Log message for revision 95216:
  use os-specific path separator

Changed:
  U   grokproject/trunk/grokproject/template_paste/src/+package+/startup.py_tmpl

-=-
Modified: grokproject/trunk/grokproject/template_paste/src/+package+/startup.py_tmpl
===================================================================
--- grokproject/trunk/grokproject/template_paste/src/+package+/startup.py_tmpl	2009-01-27 14:39:24 UTC (rev 95215)
+++ grokproject/trunk/grokproject/template_paste/src/+package+/startup.py_tmpl	2009-01-27 15:03:17 UTC (rev 95216)
@@ -1,4 +1,4 @@
-import os
+import os.path
 import sys
 import code
 import zdaemon.zdctl
@@ -9,7 +9,7 @@
     zope_conf = os.path.join(global_conf['zope_conf'])
     return zope.app.wsgi.getWSGIApplication(zope_conf)
 
-def interactive_debug_prompt(zope_conf='etc/zope.conf'):
+def interactive_debug_prompt(zope_conf=os.path.join('etc', 'zope.conf')):
     db = zope.app.wsgi.config(zope_conf)
     debugger = zope.app.debug.Debugger.fromDatabase(db)
     # Invoke an interactive interpreter shell
@@ -30,6 +30,6 @@
         print "debug -- Initialize the application, providing a debugger"
         print "         object at an interactive Python prompt."
 
-def zdaemon_controller(zdaemon_conf='etc/zdaemon.conf'):
+def zdaemon_controller(zdaemon_conf=os.path.join('etc', 'zdaemon.conf')):
     args = ['-C', zdaemon_conf] + sys.argv[1:]
-    zdaemon.zdctl.main(args, options=None, cmdclass=ControllerCommands)
\ No newline at end of file
+    zdaemon.zdctl.main(args, options=None, cmdclass=ControllerCommands)



More information about the Checkins mailing list