[Zope-Checkins] CVS: Zope/utilities - mkzopeinstance.py:

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

Modified Files:
      Tag: Zope-2_7-branch
Log Message:

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 => ===
--- Zope/utilities/mkzopeinstance.py:	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 mailing list