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

Unified Diff: chrome/build_nacl_irt.py

Issue 8680018: Fix python scripts in src/chrome/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright 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 | « chrome/browser/ui/views/PRESUBMIT.py ('k') | chrome/common/net/PRESUBMIT.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/build_nacl_irt.py
diff --git a/chrome/build_nacl_irt.py b/chrome/build_nacl_irt.py
index 6225311450925f87548a4f8a023b51d9399fca52..be28c10b45e38c5095baac616ca5a2d22bcb9cf1 100755
--- a/chrome/build_nacl_irt.py
+++ b/chrome/build_nacl_irt.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/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.
@@ -215,13 +215,14 @@ def Main(argv):
if args or not options.platforms or (
not options.inputs and not options.outdir):
parser.print_help()
- sys.exit(1)
+ return 1
if options.inputs:
PrintInputs(options.platforms)
else:
BuildIRT(options.platforms, options.outdir)
+ return 0
if __name__ == '__main__':
- Main(sys.argv)
+ sys.exit(Main(sys.argv))
« no previous file with comments | « chrome/browser/ui/views/PRESUBMIT.py ('k') | chrome/common/net/PRESUBMIT.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698