fix tempfile deleted
This commit is contained in:
parent
bd97135588
commit
f9a37a80c9
1 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ class D2langDirective(Directive):
|
|||
for line in self.content:
|
||||
fp.write(bytes(line,'utf-8'))
|
||||
cmd_line = '%s %s %s' % (d2_bin, fp.name, srcdir + "/test.svg")
|
||||
args = shlex.split(cmd_line)
|
||||
subprocess.run(args)
|
||||
args = shlex.split(cmd_line)
|
||||
subprocess.run(args)
|
||||
image_node = nodes.image(uri="/test.svg")
|
||||
return [image_node]
|
||||
|
|
Loading…
Reference in a new issue