Skip to content

Commit 488c43e

Browse files
pass env vars correctly
1 parent e0ae1fe commit 488c43e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def docs_live_langs(session):
169169
) + ["--port=0"]
170170
) + '"'
171171
)
172-
cmd = ['concurrently', '--kill-others', '-n', ','.join(['en'] + LANGUAGES), '-c', 'auto', *cmds]
172+
cmd = ['concurrently', '--kill-others', '-n', ','.join(LANGUAGES), '-c', 'auto', *cmds]
173173
session.run(*cmd)
174174

175175
@nox.session(name="docs-clean")
@@ -224,7 +224,7 @@ def build_languages(session):
224224
out_dir = OUTPUT_DIR
225225
else:
226226
out_dir = OUTPUT_DIR / lang
227-
session.run(f"SPHINX_LANG={lang}", SPHINX_BUILD, *BUILD_PARAMETERS, "-D", f"language={lang}", ".", out_dir, *session.posargs)
227+
session.run(SPHINX_BUILD, *BUILD_PARAMETERS, "-D", f"language={lang}", ".", out_dir, *session.posargs, env={"SPHINX_LANG", lang})
228228

229229

230230
@nox.session(name="build-translations")

0 commit comments

Comments
 (0)