From 6b8c91a145e9166096da76e60056238be538b493 Mon Sep 17 00:00:00 2001 From: "dpranke@chromium.org" Date: Wed, 3 Apr 2013 22:05:06 +0000 Subject: [PATCH] Make depot_tools' fetch work on windows if 'gclient' isn't in the path TBR=maruel@chromium.org, agable@chromium.org BUG= Review URL: https://codereview.chromium.org/13589003 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@192170 0039d316-1c4b-4281-b951-d872f2087c98 --- fetch.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fetch.py b/fetch.py index 25f9174d8..249b50bde 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):