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..69a5bdb681b4039b530899723bff57bc1ba9ab14 |
--- a/tools/site_compare/command_line.py |
+++ b/tools/site_compare/command_line.py |
@@ -1,4 +1,4 @@ |
-#!/usr/bin/python2.4 |
+#!/usr/bin/env python |
# Copyright (c) 2006-2008 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()) |