Formats: Generate tempfile in same directory to ensure rename works.

This commit is contained in:
Florian Festi 2017-01-25 19:08:31 +01:00
parent 8d754c3855
commit 07661b1eae
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ class Formats:
ps.adjustDocumentMedia()
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]
err = subprocess.call(cmd)