OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/env python |
| 2 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. |
| 5 |
| 6 # depot_tools' download_from_google_storage.py expects to be run from the parent |
| 7 # of the 'src' directory so that paths like 'src/buildtools/linux64/gn.sha1' |
| 8 # resolve. This script exists at src/tools/ and sets the working directory for |
| 9 # download_from_google_storage.py so that it can be run from anywhere. |
| 10 |
| 11 import os |
| 12 import sys |
| 13 import subprocess |
| 14 |
| 15 def main(args): |
| 16 dir = os.path.abspath(os.path.join(os.path.dirname(__file__), |
| 17 os.pardir, os.pardir)) |
| 18 subprocess.check_call(['download_from_google_storage.py'] + args, cwd=dir) |
| 19 |
| 20 if __name__ == '__main__': |
| 21 sys.exit(main(sys.argv[1:])) |
OLD | NEW |