| Index: tools/download_from_google_storage.py
|
| diff --git a/tools/download_from_google_storage.py b/tools/download_from_google_storage.py
|
| new file mode 100755
|
| index 0000000000000000000000000000000000000000..5cd1cbfacefa581c778b074eba62828fada6487e
|
| --- /dev/null
|
| +++ b/tools/download_from_google_storage.py
|
| @@ -0,0 +1,21 @@
|
| +#!/usr/bin/env python
|
| +# Copyright 2015 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.
|
| +
|
| +# depot_tools' download_from_google_storage.py expects to be run from the parent
|
| +# of the 'src' directory so that paths like 'src/buildtools/linux64/gn.sha1'
|
| +# resolve. This script exists at src/tools/ and sets the working directory for
|
| +# download_from_google_storage.py so that it can be run from anywhere.
|
| +
|
| +import os
|
| +import sys
|
| +import subprocess
|
| +
|
| +def main(args):
|
| + dir = os.path.abspath(os.path.join(os.path.dirname(__file__),
|
| + os.pardir, os.pardir))
|
| + subprocess.check_call(['download_from_google_storage.py'] + args, cwd=dir)
|
| +
|
| +if __name__ == '__main__':
|
| + sys.exit(main(sys.argv[1:]))
|
|
|