From f2995637c2d48a050d1fcebb2b67a341a75b24b6 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 2 Jun 2026 16:21:20 -0700 Subject: [PATCH] Fix release script --- support/release.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/support/release.py b/support/release.py index 1e7961a7..4e34fe62 100755 --- a/support/release.py +++ b/support/release.py @@ -88,7 +88,9 @@ def create_doc_env(env, fmt_repo): return an environment dict with it prepended to PATH. This ensures the docs are built with the exact mkdocs/mkdocstrings versions required by the custom handler, regardless of what is installed system-wide.""" - venv_dir = os.path.join(env.build_dir, 'venv') + # Use an absolute path so the venv resolves on PATH regardless of the + # working directory the build steps run in. + venv_dir = os.path.abspath(os.path.join(env.build_dir, 'venv')) shutil.rmtree(venv_dir, ignore_errors=True) check_call([sys.executable, '-m', 'venv', venv_dir]) venv_bin = os.path.join(venv_dir, 'bin')