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

Unified Diff: tools/win/split_link/check_installed.py

Issue 14655021: fix line endings on split_link scripts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/split_link_partition.py ('k') | tools/win/split_link/install_split_link.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/win/split_link/check_installed.py
diff --git a/tools/win/split_link/check_installed.py b/tools/win/split_link/check_installed.py
index 20170211a6624936dc937ee073723d165f6a6ac7..31bf60f12172e6c6aa7dab8e6d9830816a68140c 100644
--- a/tools/win/split_link/check_installed.py
+++ b/tools/win/split_link/check_installed.py
@@ -1,46 +1,46 @@
-# Copyright (c) 2013 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import os
-import sys
-
-
-def IsAvailable():
- _winreg = None
- if sys.platform == 'win32':
- import _winreg
- elif sys.platform == 'cygwin':
- try:
- import cygwinreg as _winreg
- except ImportError:
- pass # If not available, be safe and write 0.
-
- if not _winreg:
- return False
-
- try:
- val = _winreg.QueryValue(_winreg.HKEY_CURRENT_USER,
- 'Software\\Chromium\\split_link_installed')
- return os.path.exists(val)
- except WindowsError:
- pass
-
- return False
-
-
-def main():
- # Can be called from gyp to set variable.
- if IsAvailable():
- sys.stdout.write('1')
- else:
- print >> sys.stderr, "Couldn't find split_link installation."
- print >> sys.stderr, ('Run python tools\\win\\split_link\\'
- 'install_split_link.py from an elevated Visual '
- 'Studio Command Prompt to install.')
- sys.stdout.write('0')
- return 1
-
-
-if __name__ == '__main__':
- sys.exit(main())
+# Copyright (c) 2013 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import os
+import sys
+
+
+def IsAvailable():
+ _winreg = None
+ if sys.platform == 'win32':
+ import _winreg
+ elif sys.platform == 'cygwin':
+ try:
+ import cygwinreg as _winreg
+ except ImportError:
+ pass # If not available, be safe and write 0.
+
+ if not _winreg:
+ return False
+
+ try:
+ val = _winreg.QueryValue(_winreg.HKEY_CURRENT_USER,
+ 'Software\\Chromium\\split_link_installed')
+ return os.path.exists(val)
+ except WindowsError:
+ pass
+
+ return False
+
+
+def main():
+ # Can be called from gyp to set variable.
+ if IsAvailable():
+ sys.stdout.write('1')
+ else:
+ print >> sys.stderr, "Couldn't find split_link installation."
+ print >> sys.stderr, ('Run python tools\\win\\split_link\\'
+ 'install_split_link.py from an elevated Visual '
+ 'Studio Command Prompt to install.')
+ sys.stdout.write('0')
+ return 1
+
+
+if __name__ == '__main__':
+ sys.exit(main())
« no previous file with comments | « build/split_link_partition.py ('k') | tools/win/split_link/install_split_link.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698