fetch 552 B

12345678910111213141516
  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. base_dir=$(dirname "$0")
  6. # Ensure that "depot_tools" is somewhere in PATH so this tool can be used
  7. # standalone, but allow other PATH manipulations to take priority.
  8. PATH=$PATH:$base_dir
  9. if [[ $GCLIENT_PY3 == 1 ]]; then
  10. PYTHONDONTWRITEBYTECODE=1 exec vpython3 "$base_dir/fetch.py" "$@"
  11. else
  12. PYTHONDONTWRITEBYTECODE=1 exec vpython "$base_dir/fetch.py" "$@"
  13. fi