Index: mojo/public/tools/gs.py |
diff --git a/tools/gs.py b/mojo/public/tools/gs.py |
similarity index 88% |
rename from tools/gs.py |
rename to mojo/public/tools/gs.py |
index b277d0502d685699593dab0894fd50ebf9791ddd..269af449be0e8518abb3d1d8745bb48fc967bf78 100755 |
--- a/tools/gs.py |
+++ b/mojo/public/tools/gs.py |
@@ -6,9 +6,11 @@ |
import os |
import subprocess |
import sys |
-import find_depot_tools |
-def download_from_public_bucket(gs_path, output_path): |
+def download_from_public_bucket(gs_path, output_path, find_depot_tools_path): |
+ sys.path.insert(0, find_depot_tools_path) |
vtl
2015/02/11 21:52:09
This function having a permanent side effect on sy
blundell
2015/02/11 22:22:01
Sneakily, find_depot_tools.add_depot_tools_to_path
|
+ # pylint: disable=F0401 |
+ import find_depot_tools |
depot_tools_path = find_depot_tools.add_depot_tools_to_path() |
gsutil_exe = os.path.join(depot_tools_path, "third_party", "gsutil", "gsutil") |