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()) |