Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
76e70a0d
Commit
76e70a0d
authored
14 years ago
by
Oz Linden
Browse files
Options
Downloads
Plain Diff
Automated merge with
file:///Users/oz/Work/viewer-development
parents
0b74df67
061c3a5a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/lib/python/indra/util/test_win32_manifest.py
+13
-11
13 additions, 11 deletions
indra/lib/python/indra/util/test_win32_manifest.py
with
13 additions
and
11 deletions
indra/lib/python/indra/util/test_win32_manifest.py
+
13
−
11
View file @
76e70a0d
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment