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): |