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
        service.py 
Log Message:
Import pywintypes first.

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

"""
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
directory.


=== Zope/lib/python/nt_svcutils/service.py 1.1.2.4 => 1.1.2.5 ===
--- Zope/lib/python/nt_svcutils/service.py:1.1.2.4      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
 BACKOFF_MAX = 300

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to