Skip to content

Commit 32565f9

Browse files
committed
Make the noxfile support passing a less temporary directory for building docs.
1 parent a94312d commit 32565f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

noxfile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,16 @@ def docs(session, builder):
9797
argv = ["-n", "-T", "-W"]
9898
if builder != "spelling":
9999
argv += ["-q"]
100+
posargs = session.posargs or [tmpdir / builder]
100101
session.run(
101102
"python",
102103
"-m",
103104
"sphinx",
104105
"-b",
105106
builder,
106107
DOCS,
107-
tmpdir / builder,
108108
*argv,
109+
*posargs,
109110
)
110111

111112

0 commit comments

Comments
 (0)