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

Unified Diff: tools/find_depot_tools.py

Issue 667853002: Add gclient hook to download prebuilt mojo_shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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: tools/find_depot_tools.py
diff --git a/tools/find_depot_tools.py b/tools/find_depot_tools.py
index 469a283fc4ed43bab0c93c10af25013529b1a44c..9e273a749ba1cee16ee1c2ea19f5a36030548385 100644
--- a/tools/find_depot_tools.py
+++ b/tools/find_depot_tools.py
@@ -12,15 +12,16 @@ import sys
def IsRealDepotTools(path):
- return os.path.isfile(os.path.join(path, 'gclient'))
+ return os.path.isfile(os.path.join(path, 'gclient.py'))
def add_depot_tools_to_path():
"""Search for depot_tools and add it to sys.path."""
# First look if depot_tools is already in PYTHONPATH.
for i in sys.path:
- if i.rstrip(os.sep).endswith('depot_tools') and IsRealDepotTools(i):
- return i
+ if i.rstrip(os.sep).endswith('depot_tools'):
+ if IsRealDepotTools(i):
+ return i
abarth-chromium 2014/10/21 21:24:29 Why this change?
jamesr 2014/10/21 22:10:15 Lingering effects of diagnostic changes - will rev
# Then look if depot_tools is in PATH, common case.
for i in os.environ['PATH'].split(os.pathsep):
if IsRealDepotTools(i):
« mojo/public/tools/download_shell_binary.py ('K') | « mojo/tools/upload_shell_binary.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698