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

Unified Diff: tools/swig/swig.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/sort-headers.py ('k') | tools/symsrc/img_fingerprint.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/swig/swig.py
diff --git a/tools/swig/swig.py b/tools/swig/swig.py
index c363c272cf0754399a0f423e93d0a08f79e7a82f..ddfaae40a2ddb0e1d9a5f8367c288b7f23734ccc 100755
--- a/tools/swig/swig.py
+++ b/tools/swig/swig.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.
@@ -39,9 +39,8 @@ def main():
args = [swig_bin, platform_flags[sys.platform]] + sys.argv[1:]
args = [x.replace('/', os.sep) for x in args]
print "Executing", args
- sys.exit(subprocess.call(args))
+ return subprocess.call(args)
if __name__ == "__main__":
- main()
-
+ sys.exit(main())
« no previous file with comments | « tools/sort-headers.py ('k') | tools/symsrc/img_fingerprint.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698