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 <[email protected]>
This commit is contained in:
Gilles Peskine
2026-01-19 12:34:34 +01:00
parent 18525876aa
commit ab1a43e781
+2 -2
View File
@@ -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
)