Fix sphinx-build not found in Python venv
This commit is contained in:
@@ -95,7 +95,8 @@ with tempfile.TemporaryDirectory() as tmp_dir:
|
|||||||
out_dir = work_dir / "out"
|
out_dir = work_dir / "out"
|
||||||
out_filepath = out_dir / "contents.html"
|
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)
|
result = subprocess.run(sphinx_cmd, capture_output=True)
|
||||||
|
|
||||||
# Output errors.
|
# Output errors.
|
||||||
|
|||||||
Reference in New Issue
Block a user