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

Unified Diff: mojo/tools/roll/roll_network_service.py

Issue 870143008: Move //tools/gs.py into //mojo/public/tools (Closed) Base URL: https://github.com/domokit/mojo.git@expose_downloading_network_service
Patch Set: Response to review Created 5 years, 10 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
Index: mojo/tools/roll/roll_network_service.py
diff --git a/mojo/tools/roll/roll_network_service.py b/mojo/tools/roll/roll_network_service.py
index 2cdf31544cdc3d2c4587dfb4faecfa1aaa170ef0..61286e8e25eb860cfc125567f52cd66af8d7b46a 100755
--- a/mojo/tools/roll/roll_network_service.py
+++ b/mojo/tools/roll/roll_network_service.py
@@ -16,7 +16,7 @@ from utils import commit
from utils import mojo_root_dir
from utils import system
-sys.path.insert(0, os.path.join(mojo_root_dir, "tools"))
+sys.path.insert(0, os.path.join(mojo_root_dir, "mojo/public/tools/pylib"))
# pylint: disable=F0401
import gs
@@ -39,7 +39,9 @@ def roll(target_version):
try:
with tempfile.NamedTemporaryFile() as temp_zip_file:
- gs.download_from_public_bucket(mojoms_gs_path, temp_zip_file.name)
+ find_depot_tools_path = os.path.join(mojo_root_dir, "tools")
+ gs.download_from_public_bucket(mojoms_gs_path, temp_zip_file.name,
+ find_depot_tools_path)
try:
system(["git", "rm", "-r", mojoms_path], cwd=mojo_root_dir)
« mojo/public/tools/pylib/gs.py ('K') | « mojo/public/tools/pylib/gs.py ('k') | tools/gs.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698