Skip to content
This repository has been archived by the owner on Feb 13, 2020. It is now read-only.

Commit

Permalink
Merge rev 30688 from 2.8 branch.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Tim Peters committed Jun 8, 2005
1 parent c9b1074 commit a288af7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion service.py
Expand Up @@ -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
Expand Down

0 comments on commit a288af7

Please sign in to comment.