Commit f6ef3658 authored by Tim Peters's avatar Tim Peters

Merge rev 30688 from 2.8 branch.

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.
parent 4ee18b66
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment