[Zope3-checkins] SVN: zdaemon/trunk/zdctl.py only use the basename to generate the default interactive prompt

Fred L. Drake, Jr. fdrake at gmail.com
Thu Aug 5 14:57:13 EDT 2004


Log message for revision 26919:
  only use the basename to generate the default interactive prompt


Changed:
  U   zdaemon/trunk/zdctl.py


-=-
Modified: zdaemon/trunk/zdctl.py
===================================================================
--- zdaemon/trunk/zdctl.py	2004-08-05 16:48:46 UTC (rev 26918)
+++ zdaemon/trunk/zdctl.py	2004-08-05 18:57:13 UTC (rev 26919)
@@ -84,7 +84,7 @@
         self.add("logfile", "runner.logfile", "l:", "logfile=")
         self.add("python", "runner.python")
         self.add("zdrun", "runner.zdrun")
-        programname = sys.argv[0]
+        programname = os.path.basename(sys.argv[0])
         base, ext = os.path.splitext(programname)
         if ext == ".py":
             programname = base



More information about the Zope3-Checkins mailing list