From f6e3b7fb3a91133d9edcbe9782f7b377b2546a34 Mon Sep 17 00:00:00 2001 From: Mirko Bonadei Date: Wed, 14 Apr 2021 21:08:40 +0000 Subject: [PATCH] Switch download_from_google_storage scripts to invoke python3. Bug: 941669 Change-Id: I65a9ca3453858c447f6533d9a3a4eade4a825aa7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2825441 Reviewed-by: Dirk Pranke Commit-Queue: Mirko Bonadei --- download_from_google_storage | 2 +- download_from_google_storage.bat | 2 +- download_from_google_storage.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/download_from_google_storage b/download_from_google_storage index 74e1e83f9..181c1d97e 100755 --- a/download_from_google_storage +++ b/download_from_google_storage @@ -5,4 +5,4 @@ base_dir=$(dirname "$0") -PYTHONDONTWRITEBYTECODE=1 exec python "$base_dir/download_from_google_storage.py" "$@" +PYTHONDONTWRITEBYTECODE=1 exec $base_dir/python-bin/python3 "$base_dir/download_from_google_storage.py" "$@" diff --git a/download_from_google_storage.bat b/download_from_google_storage.bat index f1f2d2161..314c1efdc 100755 --- a/download_from_google_storage.bat +++ b/download_from_google_storage.bat @@ -9,4 +9,4 @@ setlocal set PATH=%PATH%;%~dp0 :: Defer control. -python "%~dp0\download_from_google_storage.py" %* +%dp0\python-bin\python3.bat "%~dp0\download_from_google_storage.py" %* diff --git a/download_from_google_storage.py b/download_from_google_storage.py index 50b34b8f5..632b661d2 100755 --- a/download_from_google_storage.py +++ b/download_from_google_storage.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file.