0
Fork 0
mirror of https://projects.blender.org/infrastructure/gitea-custom.git synced 2024-12-22 07:13:09 -05:00

Fix sphinx-build not found in Python venv

This commit is contained in:
Brecht Van Lommel 2023-05-25 12:26:56 +02:00
parent fb314545c6
commit 8b39413afc

View file

@ -95,7 +95,8 @@ with tempfile.TemporaryDirectory() as tmp_dir:
out_dir = work_dir / "out"
out_filepath = out_dir / "contents.html"
sphinx_cmd = ["sphinx-build", "-b", "html", work_dir, out_dir]
sphinx_build = script_dir / "venv" / "bin" / "sphinx-build"
sphinx_cmd = [sphinx_build, "-b", "html", work_dir, out_dir]
result = subprocess.run(sphinx_cmd, capture_output=True)
# Output errors.