Update of /cvsroot/pywin32/pywin32/win32/Demos/service
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18086
Modified Files:
pipeTestService.py
Log Message:
Move the import of servicemanager to the top-level, and add comments.
Index: pipeTestService.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/Demos/service/pipeTestService.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** pipeTestService.py 12 Mar 2003 12:24:39 -0000 1.4
--- pipeTestService.py 10 Sep 2004 06:20:36 -0000 1.5
***************
*** 19,22 ****
--- 19,27 ----
from ntsecuritycon import *
+ # Old versions of the service framework would not let you import this
+ # module at the top-level. Now you can, and can check 'Debugging()' and
+ # 'RunningAsService()' to check your context.
+ import servicemanager
+
import traceback
import thread
***************
*** 103,107 ****
# Write an event log record - in debug mode we will also
# see this message printed.
- import servicemanager
servicemanager.LogMsg(
servicemanager.EVENTLOG_INFORMATION_TYPE,
--- 108,111 ----
|