Update of /cvs-repository/Zope/lib/python/nt_svcutils
In directory cvs.zope.org:/tmp/cvs-serv10138/lib/python/nt_svcutils

Modified Files:
      Tag: Zope-2_7-branch
Log Message:
Import pywintypes first.

Mark Hammond's checkin comment for Zope 2.7's WinSignalHandler.py,

As at pywin32-204, we must ensure pywintypes is the first win32 module
imported in our process, otherwise we can end up with 2 pywintypesxx.dll
instances in our process resulting in:
TypeError: The object is not a PySECURITY_ATTRIBUTES object

Mysterious error popup boxes have also been seen, on boxes with a
pre-pywin32-204 installation leaving pywin32 DLLs in the system32

=== Zope/lib/python/nt_svcutils/service.py => ===
--- Zope/lib/python/nt_svcutils/service.py:      Tue Apr 19 11:46:37 2005
+++ Zope/lib/python/nt_svcutils/service.py      Wed Jun  8 11:33:21 2005
@@ -15,9 +15,11 @@
 """Windows Services installer/controller for Zope/ZEO/ZRS instance homes"""
 import sys, os, time, threading, signal
+import pywintypes
+import winerror, win32con
 import win32api, win32event, win32file, win32pipe, win32process, win32security
 import win32service, win32serviceutil, servicemanager
-import pywintypes, winerror, win32con
 # the max seconds we're allowed to spend backing off

Zope-Checkins maillist  -  Zope-Checkins@zope.org

Reply via email to