Update of /cvsroot/pywin32/pywin32/win32/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4895
Modified Files:
win32serviceutil.py
Log Message:
More reliable debug mode detection (endwith '_d' rather than any '_d')
Index: win32serviceutil.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/Lib/win32serviceutil.py,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** win32serviceutil.py 26 Jun 2005 12:46:57 -0000 1.21
--- win32serviceutil.py 20 Sep 2005 12:16:22 -0000 1.22
***************
*** 16,20 ****
# use it. Otherwise look down sys.path, and the global PATH environment.
if exeName is None:
! if win32service.__file__.find("_d")>=0:
exeName = "PythonService_d.exe"
else:
--- 16,20 ----
# use it. Otherwise look down sys.path, and the global PATH environment.
if exeName is None:
! if os.path.splitext(win32service.__file__)[0].endswith("_d"):
exeName = "PythonService_d.exe"
else:
|