Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/framework
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30369/pywin/framework
Modified Files:
app.py
Log Message:
Change where we read the version string from.
Index: app.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/framework/app.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** app.py 15 Apr 2002 15:16:35 -0000 1.8
--- app.py 7 Feb 2004 01:02:58 -0000 1.9
***************
*** 332,339 ****
self.SetDlgItemText(win32ui.IDC_EDIT1, text)
# Get the build number - written by installers.
! # win32all build number
! ver = _GetRegistryValue("SOFTWARE\\Python\\Pythonwin\\Build", None)
! if ver is not None:
! ver = "win32all build %s" % (ver,)
if ver is None:
# See if we are Part of Active Python
--- 332,339 ----
self.SetDlgItemText(win32ui.IDC_EDIT1, text)
# Get the build number - written by installers.
! # For distutils build, use the uninstall key.
! key_name = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion" \
! "\\Uninstall\\pywin32-py%d.%d" % sys.version_info[:2]
! ver = _GetRegistryValue(key_name, "DisplayName")
if ver is None:
# See if we are Part of Active Python
|