From c9b063bc6565840714a3008f264fc4e76112836e Mon Sep 17 00:00:00 2001 From: Vitaly Date: Sun, 19 Apr 2026 17:50:02 +0500 Subject: [PATCH] Use sys.executable instead of python3 in docs build script (#8183) * Use sys.executable instead of python3 in docs build script * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- docs/build.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/build.py b/docs/build.py index d8c3e944c..2f0677f81 100755 --- a/docs/build.py +++ b/docs/build.py @@ -1,13 +1,16 @@ #!/usr/bin/env python3 import shutil import subprocess +import sys from pathlib import Path here = Path(__file__).parent for script in sorted((here / "scripts").glob("*.py")): print(f"Generating output for {script.name}...") - out = subprocess.check_output(["python3", script.absolute()], cwd=here, text=True) + out = subprocess.check_output( + [sys.executable, script.absolute()], cwd=here, text=True + ) if out: (here / "src" / "generated" / f"{script.stem}.html").write_text( out, encoding="utf8"