Update of /cvsroot/pywin32/pywin32
In directory sc8-pr-cvs1:/tmp/cvs-serv21595
Modified Files:
pywin32_postinstall.py
Log Message:
Also install the Pythonwin shortcut on Win98.
Index: pywin32_postinstall.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/pywin32_postinstall.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** pywin32_postinstall.py 3 Dec 2003 09:00:57 -0000 1.5
--- pywin32_postinstall.py 3 Dec 2003 09:31:06 -0000 1.6
***************
*** 156,161 ****
try:
# use bdist_wininst builtins to create a shortcut.
! # XXX CSIDL_COMMON_PROGRAMS only available works on NT/2000/XP:
! fldr = get_special_folder_path("CSIDL_COMMON_PROGRAMS")
dst = os.path.join(fldr, "Python %d.%d\\PythonWin.lnk" % \
(sys.version_info[0], sys.version_info[1]))
--- 156,165 ----
try:
# use bdist_wininst builtins to create a shortcut.
! try:
! # CSIDL_COMMON_PROGRAMS only available works on NT/2000/XP:
! fldr = get_special_folder_path("CSIDL_COMMON_PROGRAMS")
! except OSError:
! # CSIDL_PROGRAMS should work on Win 98
! fldr = get_special_folder_path("CSIDL_PROGRAMS")
dst = os.path.join(fldr, "Python %d.%d\\PythonWin.lnk" % \
(sys.version_info[0], sys.version_info[1]))
***************
*** 165,171 ****
file_created(dst)
except Exception, details:
! print details
else:
! print "Shortcut for Pythonwin created"
print "The pywin32 extensions were successfully installed."
--- 169,177 ----
file_created(dst)
except Exception, details:
! if verbose:
! print details
else:
! if verbose:
! print "Shortcut for Pythonwin created"
print "The pywin32 extensions were successfully installed."
|