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

Unified Diff: tools/site_compare/command_line.py

Issue 8678023: Fix python scripts in src/tools/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes Created 9 years, 1 month 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 | « tools/python/google/platform_utils_win.py ('k') | tools/site_compare/commands/__init__.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/site_compare/command_line.py
diff --git a/tools/site_compare/command_line.py b/tools/site_compare/command_line.py
old mode 100644
new mode 100755
index 2c87fb91dbbff26c15eebc7b96c5d328fd70c1de..de93d18ce0ab36525ecb1ae3af6e417ef5cf00d6
--- a/tools/site_compare/command_line.py
+++ b/tools/site_compare/command_line.py
@@ -1,5 +1,5 @@
-#!/usr/bin/python2.4
-# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+#!/usr/bin/env python
+# Copyright (c) 2011 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.
@@ -660,7 +660,8 @@ def DoHelpCommand(command):
command.cmdline.Exit()
-if __name__ == "__main__":
+
+def main():
# If we're invoked rather than imported, run some tests
cmdline = CommandLine()
@@ -797,3 +798,5 @@ if __name__ == "__main__":
cmdline.ParseCommandLine(["help", "test"])
+if __name__ == "__main__":
+ sys.exit(main())
« no previous file with comments | « tools/python/google/platform_utils_win.py ('k') | tools/site_compare/commands/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698