From ab1a43e7817c59503984e7080f7e0a6ff5ca8982 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Mon, 19 Jan 2026 12:34:34 +0100 Subject: [PATCH] check_names: Use the same Python executable instead of `python3` Fix build failure in environments where `python3` doesn't exist or is too old. Signed-off-by: Gilles Peskine --- scripts/check_names.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/check_names.py b/scripts/check_names.py index 9eab8cf40..bdbeefdc6 100755 --- a/scripts/check_names.py +++ b/scripts/check_names.py @@ -850,7 +850,7 @@ class TFPSACryptoCodeParser(CodeParser): # Use check=True in all subprocess calls so that failures are raised # as exceptions and logged. subprocess.run( - ["python3", "scripts/config.py", "full"], + [sys.executable, "scripts/config.py", "full"], universal_newlines=True, check=True ) @@ -1019,7 +1019,7 @@ class MBEDTLSCodeParser(CodeParser): # Use check=True in all subprocess calls so that failures are raised # as exceptions and logged. subprocess.run( - ["python3", "scripts/config.py", "full"], + [sys.executable, "scripts/config.py", "full"], universal_newlines=True, check=True )