blob: fd28305258959b8b51c982f62e8acfb082c0ac6e [file] [log] [blame]
agable@chromium.orgcc023502013-04-03 20:24:21 +00001#!/usr/bin/env bash
2# Copyright (c) 2013 The Chromium Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6base_dir=$(dirname "$0")
7
Edward Lemur5c869192019-10-11 20:08:17 +00008# Ensure that "depot_tools" is somewhere in PATH so this tool can be used
9# standalone, but allow other PATH manipulations to take priority.
10PATH=$PATH:$base_dir
11
Anthony Polito75c59422019-10-21 21:50:21 +000012if [[ $GCLIENT_PY3 == 1 ]]; then
13 PYTHONDONTWRITEBYTECODE=1 exec vpython3 "$base_dir/fetch.py" "$@"
14else
15 PYTHONDONTWRITEBYTECODE=1 exec vpython "$base_dir/fetch.py" "$@"
16fi