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

Unified Diff: fetch.py

Issue 13589003: Make depot_tools' fetch work on windows if 'gclient' isn't in the path (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fetch.py
diff --git a/fetch.py b/fetch.py
index 25f9174d8b971508a36bdc888b1790bd203608f9..249b50bde1923a0972a22ca7fd0b2b6025cb80e6 100755
--- a/fetch.py
+++ b/fetch.py
@@ -62,7 +62,9 @@ class GclientCheckout(Checkout):
def run_gclient(self, *cmd, **kwargs):
print 'Running: gclient %s' % ' '.join(pipes.quote(x) for x in cmd)
if not self.dryrun:
- return subprocess.check_call(('gclient',) + cmd, **kwargs)
+ return subprocess.check_call(
+ (sys.executable, os.path.join(SCRIPT_PATH, 'gclient.py')) + cmd,
+ **kwargs)
class GitCheckout(Checkout):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698