diff --git a/boxes/formats.py b/boxes/formats.py index 7f06be0..6f8c4aa 100644 --- a/boxes/formats.py +++ b/boxes/formats.py @@ -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)