Remove Python from the command in CheckGNFormatted

The command is passed directly to gn.main, so it does not
need the python executable.

Change-Id: I010bf68e86bf48b4b7387c26124ede216696449f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6793062
Reviewed-by: Brian Ryner <bryner@google.com>
Commit-Queue: Olivier Robin <olivierrobin@chromium.org>
This commit is contained in:
Olivier ROBIN
2025-07-28 08:20:26 -07:00
committed by LUCI CQ
parent 56f1f96c4b
commit 435e3b303e

View File

@@ -1878,7 +1878,6 @@ def CheckGNFormatted(input_api, output_api):
warnings = []
for f in affected_files:
cmd = [
input_api.python3_executable,
input_api.os_path.join(_HERE, 'gn.py'), 'format', '--dry-run',
f.AbsoluteLocalPath()
]
@@ -2864,4 +2863,4 @@ def CheckValidHostsInDEPSOnUpload(input_api, output_api):
output_api.PresubmitError(
'DEPS file must have only git dependencies.',
long_text=error.output)
]
]