From 69135d1e32aea6d297ea991d8a80ccbe431bc41b Mon Sep 17 00:00:00 2001 From: Erik Staab Date: Fri, 14 May 2021 22:31:57 +0000 Subject: [PATCH] Add python3_executable to the PRESUBMIT API. Change-Id: I1706bc696590215f304dcc16f08ecb6afe1144fc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2897933 Reviewed-by: Dirk Pranke Commit-Queue: Erik Staab --- presubmit_support.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/presubmit_support.py b/presubmit_support.py index 4e1fb2a7f..e149dd244 100755 --- a/presubmit_support.py +++ b/presubmit_support.py @@ -643,6 +643,8 @@ class InputApi(object): # repos (e.g. src.git) to automatically pick up that repo's .vpython file, # instead of inheriting the one in depot_tools. self.python_executable = 'vpython' + # Offer a python 3 executable for use during the migration off of python 2. + self.python3_executable = 'vpython3' self.environ = os.environ # InputApi.platform is the platform you're currently running on.