mirror of
https://github.com/vale981/sphinx-multiversion
synced 2025-03-04 17:11:39 -05:00
sphinx_multiversion/main: Reformat CLI define substitution
This commit is contained in:
parent
b4b5cc6281
commit
a21fa854c7
1 changed files with 6 additions and 4 deletions
|
@ -204,10 +204,12 @@ def main(argv=None):
|
|||
data["outputdir"] = os.path.join(args.outputdir, data["outputdir"])
|
||||
os.makedirs(data["outputdir"], exist_ok=True)
|
||||
|
||||
defines = itertools.chain(*(
|
||||
("-D", string.Template(d).safe_substitute(data))
|
||||
for d in args.define
|
||||
))
|
||||
defines = itertools.chain(
|
||||
*(
|
||||
("-D", string.Template(d).safe_substitute(data))
|
||||
for d in args.define
|
||||
)
|
||||
)
|
||||
|
||||
current_argv = argv.copy()
|
||||
current_argv.extend(
|
||||
|
|
Loading…
Add table
Reference in a new issue