Fix svgz output path

In the old script the output path given on the command line was ignored,
because of teh way how dvisgm expects commandline options.
This commit is contained in:
Georg Baum 2016-06-05 13:28:06 +02:00
parent a847fef684
commit 2ba8705435

View File

@ -158,7 +158,7 @@ def createimage(name, path, template, lyxexe, tempdir, math, replacements, toolb
if usepng: if usepng:
cmd = "dvipng %s.dvi -bg Transparent -D 115 -o %s" % (lyxname, imgname) cmd = "dvipng %s.dvi -bg Transparent -D 115 -o %s" % (lyxname, imgname)
else: else:
cmd = "dvisvgm -z --no-fonts --exact --output=%%f %s.dvi %s" % (lyxname, imgname) cmd = "dvisvgm -z --no-fonts --exact --output=%s%s%%f %s.dvi" % (path, os.path.sep, lyxname)
proc = subprocess.Popen(cmd, shell=True) proc = subprocess.Popen(cmd, shell=True)
proc.wait() proc.wait()
if proc.returncode != 0: if proc.returncode != 0: