Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1013)

Unified Diff: tools/download_from_google_storage.py

Issue 1841863002: Update monet. (Closed) Base URL: https://github.com/domokit/monet.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/dart/update.py ('k') | tools/gdb/gdb_chrome.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:]))
« no previous file with comments | « tools/dart/update.py ('k') | tools/gdb/gdb_chrome.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698