[CalendarServer-changes] [110] CalendarServer/trunk/bin/caldavd
source_changes at macosforge.org
source_changes at macosforge.org
Thu Sep 7 15:28:25 PDT 2006
Revision: 110
Author: wsanchez at apple.com
Date: 2006-09-07 15:28:21 -0700 (Thu, 07 Sep 2006)
Log Message:
-----------
Use sys.executable, not "python".
Modified Paths:
--------------
CalendarServer/trunk/bin/caldavd
Modified: CalendarServer/trunk/bin/caldavd
===================================================================
--- CalendarServer/trunk/bin/caldavd 2006-09-07 20:25:37 UTC (rev 109)
+++ CalendarServer/trunk/bin/caldavd 2006-09-07 22:28:21 UTC (rev 110)
@@ -121,7 +121,7 @@
sys.exit(1)
# Create arguments for twistd
- args = ["python"]
+ args = [os.path.basename(sys.executable)]
args.append(self.twistd)
if not self.daemonize:
args.append("-n")
@@ -136,7 +136,7 @@
# spawn the twistd python process
try:
- os.spawnvpe(os.P_WAIT, "python", args, environment)
+ os.spawnvpe(os.P_WAIT, sys.executable, args, environment)
except OSError, why:
print " [Failed]"
print "Error: %s" % (why[1],)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20060907/976401e7/attachment.html
More information about the calendarserver-changes
mailing list