Update of /cvsroot/pywin32/pywin32
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5396
Modified Files:
pywin32_postinstall.py
Log Message:
We would fail to setup the Help in the registry if this was the first time
a non-admin user installed a python extesion after an admin installed
python itself.
Index: pywin32_postinstall.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/pywin32_postinstall.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** pywin32_postinstall.py 6 Oct 2004 05:38:29 -0000 1.14
--- pywin32_postinstall.py 8 Oct 2004 23:15:56 -0000 1.15
***************
*** 201,204 ****
--- 201,205 ----
"reinstall this software as an Administrator" \
% dst
+ print msg
raise RuntimeError, msg
continue
***************
*** 226,229 ****
--- 227,234 ----
traceback.print_exc()
+ # There may be no main Python key in HKCU if, eg, an admin installed
+ # python itself.
+ _winreg.CreateKey(get_root_hkey(), root_key_name)
+
# Register the .chm help file.
chm_file = os.path.join(lib_dir, "PyWin32.chm")
|