[Zope-Checkins] CVS: Zope/utilities - mkzopeinstance.py:126.96.36.199
Sidnei da Silva
sidnei at awkly.org
Tue Apr 12 23:41:34 EDT 2005
Update of /cvs-repository/Zope/utilities
In directory cvs.zope.org:/tmp/cvs-serv27740/utilities
Major service enhancements. Service cleanly shuts down child, and if child
fails the tail of the process output (which generally contains a traceback)
written to the event log.
Minor tweaks to the Windows build 'clean' process and documentation tweaks.
=== Zope/utilities/mkzopeinstance.py 188.8.131.52 => 184.108.40.206 ===
--- Zope/utilities/mkzopeinstance.py:220.127.116.11 Wed Jul 14 01:00:23 2004
+++ Zope/utilities/mkzopeinstance.py Tue Apr 12 23:41:34 2005
@@ -93,9 +93,11 @@
user, password = get_inituser()
# we need to distinguish between python.exe and pythonw.exe under
- # Windows in order to make Zope run using python.exe when run in a
- # console window and pythonw.exe when run as a service, so we do a bit
- # of sniffing here.
+ # Windows. Zope is always run using 'python.exe' (even for services),
+ # however, it may be installed via pythonw.exe (as a sub-process of an
+ # installer). Thus, sys.executable may not be the executable we use.
+ # We still provide both PYTHON and PYTHONW, but PYTHONW should never
+ # need be used.
psplit = os.path.split(sys.executable)
exedir = os.path.join(*psplit[:-1])
pythonexe = os.path.join(exedir, 'python.exe')
More information about the Zope-Checkins