agable@chromium.org | cc02350 | 2013-04-03 20:24:21 +0000 | [diff] [blame] | 1 | #!/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 | |
| 6 | base_dir=$(dirname "$0") |
| 7 | |
Edward Lemur | 5c86919 | 2019-10-11 20:08:17 +0000 | [diff] [blame] | 8 | # Ensure that "depot_tools" is somewhere in PATH so this tool can be used |
| 9 | # standalone, but allow other PATH manipulations to take priority. |
| 10 | PATH=$PATH:$base_dir |
| 11 | |
Anthony Polito | 75c5942 | 2019-10-21 21:50:21 +0000 | [diff] [blame] | 12 | if [[ $GCLIENT_PY3 == 1 ]]; then |
| 13 | PYTHONDONTWRITEBYTECODE=1 exec vpython3 "$base_dir/fetch.py" "$@" |
| 14 | else |
| 15 | PYTHONDONTWRITEBYTECODE=1 exec vpython "$base_dir/fetch.py" "$@" |
| 16 | fi |