summaryrefslogtreecommitdiff
path: root/indra/lib
diff options
context:
space:
mode:
authorRobin Cornelius <robin.cornelius@gmail.com>2010-12-27 12:18:19 +0000
committerRobin Cornelius <robin.cornelius@gmail.com>2010-12-27 12:18:19 +0000
commit061c3a5ab6cb94d3eba441ee0aa0d0cd498ab005 (patch)
tree2492a5bc8db62d2666a1b0eaa2c57b2bcb4fabd8 /indra/lib
parenta9caa3151cea77b992c06c5a774d333ffd3016e1 (diff)
VWR-20879: Allow find_vc_dir() to work with VCExpress
Diffstat (limited to 'indra/lib')
-rw-r--r--indra/lib/python/indra/util/test_win32_manifest.py24
1 files changed, 13 insertions, 11 deletions
diff --git a/indra/lib/python/indra/util/test_win32_manifest.py b/indra/lib/python/indra/util/test_win32_manifest.py
index 786521c068..da8ee6c545 100644
--- a/indra/lib/python/indra/util/test_win32_manifest.py
+++ b/indra/lib/python/indra/util/test_win32_manifest.py
@@ -52,20 +52,22 @@ def get_HKLM_registry_value(key_str, value_str):
def find_vc_dir():
supported_versions = (r'8.0', r'9.0')
+ supported_products = (r'VisualStudio', r'VCExpress')
value_str = (r'ProductDir')
- for version in supported_versions:
- key_str = (r'SOFTWARE\Microsoft\VisualStudio\%s\Setup\VC' %
- version)
- try:
- return get_HKLM_registry_value(key_str, value_str)
- except WindowsError, err:
- x64_key_str = (r'SOFTWARE\Wow6432Node\Microsoft\VisualStudio\%s\Setup\VS' %
- version)
+ for product in supported_products:
+ for version in supported_versions:
+ key_str = (r'SOFTWARE\Microsoft\%s\%s\Setup\VC' %
+ (product, version))
try:
- return get_HKLM_registry_value(x64_key_str, value_str)
- except:
- print >> sys.stderr, "Didn't find MS VC version %s " % version
+ return get_HKLM_registry_value(key_str, value_str)
+ except WindowsError, err:
+ x64_key_str = (r'SOFTWARE\Wow6432Node\Microsoft\VisualStudio\%s\Setup\VS' %
+ version)
+ try:
+ return get_HKLM_registry_value(x64_key_str, value_str)
+ except:
+ print >> sys.stderr, "Didn't find MS %s version %s " % (product,version)
raise