Update of /cvsroot/pywin32/pywin32/win32/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18072
Modified Files:
win32serviceutil.py
Log Message:
Also search sys.prefix for pythonservice.exe
Index: win32serviceutil.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/Lib/win32serviceutil.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** win32serviceutil.py 20 Sep 2005 12:16:22 -0000 1.22
--- win32serviceutil.py 24 Oct 2005 06:17:54 -0000 1.23
***************
*** 33,37 ****
except win32api.error:
# OK - not there - lets go a-searchin'
! for path in sys.path:
look = os.path.join(path, exeName)
if os.path.isfile(look):
--- 33,37 ----
except win32api.error:
# OK - not there - lets go a-searchin'
! for path in [sys.prefix] + sys.path:
look = os.path.join(path, exeName)
if os.path.isfile(look):
|