From ea4e399c4d1508151f5e8d86229351d186dca424 Mon Sep 17 00:00:00 2001 From: Mirko Bonadei Date: Wed, 14 Apr 2021 18:05:29 +0000 Subject: [PATCH] Switch gn wrapper scripts to invoke python3. Bug: 941669 Change-Id: I515459793f2a406a959c361f9884b183e21ebdf7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2825439 Reviewed-by: Dirk Pranke Commit-Queue: Mirko Bonadei --- gn | 2 +- gn.bat | 2 +- gn.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gn b/gn index 93c16e1d6f..6ae3065a36 100755 --- a/gn +++ b/gn @@ -5,4 +5,4 @@ base_dir=$(dirname "$0") -PYTHONDONTWRITEBYTECODE=1 exec python "$base_dir/gn.py" "$@" +PYTHONDONTWRITEBYTECODE=1 exec python3 "$base_dir/gn.py" "$@" diff --git a/gn.bat b/gn.bat index 9eb6b56a1f..7403bfb57e 100644 --- a/gn.bat +++ b/gn.bat @@ -9,4 +9,4 @@ setlocal set PATH=%PATH%;%~dp0 :: Defer control. -python "%~dp0\gn.py" %* +python3 "%~dp0\gn.py" %* diff --git a/gn.py b/gn.py index 43b18dd009..52d892dba9 100755 --- a/gn.py +++ b/gn.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright 2013 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.