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
experimental/szager/collated-output
dpranke@chromium.org 12 years ago
parent 7ca51b30a4
commit 6b8c91a145

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

Loading…
Cancel
Save