Skip to content

Commit aff6a39

Browse files
authored
Fix command strings being split to list of chars (#1661)
1 parent b5665c7 commit aff6a39

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

plugins/builder/pdf_builder.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,11 @@ def command(
262262
:returns:
263263
Process object representing invoked command.
264264
"""
265+
if isinstance(cmd, list):
266+
cmd = list(map(self.expandvars, cmd))
267+
elif isinstance(cmd, str):
268+
cmd = self.expandvars(cmd)
269+
265270
if cwd is None:
266271
cwd = self.tex_dir
267272

@@ -272,7 +277,7 @@ def command(
272277
shell = self.run_in_shell
273278

274279
return external_command(
275-
cmd=list(map(self.expandvars, cmd)),
280+
cmd=cmd,
276281
cwd=cwd,
277282
shell=shell,
278283
env=env,

0 commit comments

Comments
 (0)