Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Issue 724863002: win: Use the _winreg module for registry access (Closed)

Created:
6 years, 1 month ago by Shezan Baig (Bloomberg)
Modified:
6 years, 1 month ago
Reviewers:
scottmg
CC:
gyp-developer_googlegroups.com
Visibility:
Public.

Description

win: Use the _winreg module for registry access This commit changes the Visual Studio installation path detection code to use _winreg to find the installation path in the registry. The previous method of using reg.exe is preserved as a fallback for when '_winreg' cannot be imported (for example in cygwin). Also, remove the '_RegistryKeyExists' function since it is not used anywhere. BUG= R=scottmg@chromium.org Committed: https://code.google.com/p/gyp/source/detail?r=2002

Patch Set 1 #

Total comments: 3

Patch Set 2 : address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -14 lines) Patch
M pylib/gyp/MSVSVersion.py View 1 3 chunks +32 lines, -14 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
Shezan Baig (Bloomberg)
6 years, 1 month ago (2014-11-13 17:58:42 UTC) #2
scottmg
lgtm https://codereview.chromium.org/724863002/diff/1/pylib/gyp/MSVSVersion.py File pylib/gyp/MSVSVersion.py (right): https://codereview.chromium.org/724863002/diff/1/pylib/gyp/MSVSVersion.py#newcode180 pylib/gyp/MSVSVersion.py:180: root,subkey = key.split('\\', 1) nit; space after , ...
6 years, 1 month ago (2014-11-13 18:05:35 UTC) #3
Shezan Baig (Bloomberg)
Thanks for the quick review! I've uploaded a new patch with the changes
6 years, 1 month ago (2014-11-13 18:46:50 UTC) #4
scottmg
lgtm
6 years, 1 month ago (2014-11-13 18:51:33 UTC) #5
Shezan Baig (Bloomberg)
6 years, 1 month ago (2014-11-13 19:46:33 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as 2002 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698