Skip to content

Commit b3f9d0e

Browse files
committed
Make the noxfile support passing a less temporary directory for building docs.
1 parent a7ebc41 commit b3f9d0e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

noxfile.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,16 @@ def docs(session, builder):
155155
argv = ["-n", "-T", "-W"]
156156
if builder != "spelling":
157157
argv += ["-q"]
158+
posargs = session.posargs or [tmpdir / builder]
158159
session.run(
159160
"python",
160161
"-m",
161162
"sphinx",
162163
"-b",
163164
builder,
164165
DOCS,
165-
tmpdir / builder,
166166
*argv,
167+
*posargs,
167168
)
168169

169170

0 commit comments

Comments
 (0)