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

Side by Side Diff: tools/win/supalink/check_installed.py

Issue 8059024: Mostly automatic incremental link enabling (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 import sys
2
3 def main():
4 if sys.platform != 'win32':
5 sys.stdout.write('0')
6 return
7
8 import _winreg
9 import os
10
11 try:
12 val = _winreg.QueryValue(_winreg.HKEY_CURRENT_USER,
13 'Software\\Chromium\\supalink_installed')
14 if os.path.exists(val):
15 # Apparently gyp thinks this means there was an error?
16 #sys.stderr.write('Supalink enabled.\n')
17 sys.stdout.write('1')
18 return
19 except WindowsError:
20 pass
21
22 sys.stdout.write('0')
23
24 if __name__ == '__main__':
25 main()
26 sys.exit(0)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698