OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # This file takes two arguments, the relative location of the shell script that | 5 # This file takes two arguments, the relative location of the shell script that |
6 # does the checking, and the name of the sysroot. | 6 # does the checking, and the name of the sysroot. |
7 | 7 |
8 # TODO(brettw) the build/linux/sysroot_ld_path.sh script should be rewritten in | 8 # TODO(brettw) the build/linux/sysroot_ld_path.sh script should be rewritten in |
9 # Python in this file. | 9 # Python in this file. |
10 | 10 |
11 import subprocess | 11 import subprocess |
12 import sys | 12 import sys |
13 | 13 |
14 if len(sys.argv) != 3: | 14 if len(sys.argv) != 3: |
15 print "Need two arguments" | 15 print "Need two arguments" |
16 sys.exit(1) | 16 sys.exit(1) |
17 | 17 |
18 result = subprocess.check_output([sys.argv[1], sys.argv[2]]).strip() | 18 result = subprocess.check_output([sys.argv[1], sys.argv[2]]).strip() |
19 | 19 |
20 print '"' + result + '"' | 20 print '"' + result + '"' |
OLD | NEW |