Formats: Generate tempfile in same directory to ensure rename works.
This commit is contained in:
parent
8d754c3855
commit
07661b1eae
|
@ -89,7 +89,7 @@ class Formats:
|
||||||
ps.adjustDocumentMedia()
|
ps.adjustDocumentMedia()
|
||||||
|
|
||||||
if fmt not in ("svg", "ps"):
|
if fmt not in ("svg", "ps"):
|
||||||
fd, tmpfile = tempfile.mkstemp()
|
fd, tmpfile = tempfile.mkstemp(dir=os.path.dirname(filename))
|
||||||
cmd = [self.pstoedit] + self.formats[fmt] + [filename, tmpfile]
|
cmd = [self.pstoedit] + self.formats[fmt] + [filename, tmpfile]
|
||||||
err = subprocess.call(cmd)
|
err = subprocess.call(cmd)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue