Revert of Copy Widevine files for swarming tests (patchset #5 id:80001 of https:...
[chromium-blink-merge.git] / build / config / linux / sysroot_ld_path.py
blob4bce7ee3e2bff5ca7e7b5c0f3c15a3e50d2c58b8
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
3 # found in the LICENSE file.
5 # This file takes two arguments, the relative location of the shell script that
6 # does the checking, and the name of the sysroot.
8 # TODO(brettw) the build/linux/sysroot_ld_path.sh script should be rewritten in
9 # Python in this file.
11 import subprocess
12 import sys
14 if len(sys.argv) != 3:
15 print "Need two arguments"
16 sys.exit(1)
18 result = subprocess.check_output([sys.argv[1], sys.argv[2]]).strip()
20 print '"' + result + '"'