Update of /cvsroot/pywin32/pywin32/isapi
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv13007/isapi
Modified Files:
install.py
Log Message:
convert module name to the long version before using it
Index: install.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/isapi/install.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** install.py 2 Feb 2009 12:55:28 -0000 1.22
--- install.py 5 Feb 2009 06:59:15 -0000 1.23
***************
*** 7,10 ****
--- 7,11 ----
from win32com.client import GetObject, Dispatch
from win32com.client.gencache import EnsureModule, EnsureDispatch
+ import win32api
import pythoncom
import winerror
***************
*** 669,673 ****
argv = argv or sys.argv
! conf_module_name = conf_module_name or sys.argv[0]
if opt_parser is None:
# Build our own parser.
--- 670,685 ----
argv = argv or sys.argv
! if not conf_module_name:
! conf_module_name = sys.argv[0]
! # convert to a long name so that if we were somehow registered with
! # the "short" version but unregistered with the "long" version we
! # still work (that will depend on exactly how the installer was
! # started)
! try:
! conf_module_name = win32api.GetLongPathName(conf_module_name)
! except win32api.error, exc:
! log(2, "Couldn't determine the long name for %r: %s" %
! (conf_module_name, exc))
!
if opt_parser is None:
# Build our own parser.
|