diff setup_windows.py @ 9:0e37ee00beb7 MySQLdb

Merge changes from 1.2 branch (r470:483): Mostly build-related.
author adustman
date Mon, 26 Feb 2007 00:55:29 +0000
parents b70cce9bd065
children 7c7a89123d65
line wrap: on
line diff
--- a/setup_windows.py	Sun Feb 11 21:36:29 2007 +0000
+++ b/setup_windows.py	Mon Feb 26 00:55:29 2007 +0000
@@ -2,13 +2,14 @@
     import os, sys, _winreg
     from setup_common import get_metadata_and_options, enabled, create_release_file
 
-    serverKey = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE,
-                                r'SOFTWARE\MySQL AB\MySQL Server 5.0')
+    metadata, options = get_metadata_and_options()
+
+    serverKey = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, options['registry_key'])
     mysql_root, dummy = _winreg.QueryValueEx(serverKey,'Location')
-    metadata, options = get_metadata_and_options()
 
     extra_objects = []
     static = enabled(options, 'static')
+    # XXX static doesn't actually do anything on Windows
     if enabled(options, 'embedded'):
         client = "mysqld"
     else: