From cb155a802bdc49cfafea1c41e0f0a92168f1da09 Mon Sep 17 00:00:00 2001 From: "maruel@chromium.org" Date: Tue, 29 Nov 2011 17:25:34 +0000 Subject: Fix python scripts in src/tools/ Make sure that: - shebang is only present for executable files - shebang is #!/usr/bin/env python - __main__ is only present for executable files - file's executable bit is coherent Also fix EOF LF to be only one. TBR=timurrrr@chromium.org BUG=105108 TEST= Review URL: http://codereview.chromium.org/8678023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111960 0039d316-1c4b-4281-b951-d872f2087c98 --- tools/swig/swig.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tools/swig') diff --git a/tools/swig/swig.py b/tools/swig/swig.py index c363c27..ddfaae4 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()) -- cgit v1.1