Skip to content

Commit 37800ca

Browse files
committed
In svg generation, make temporary files in the output directory, to avoid
cross-filesystem renames (which will likely fail).
1 parent 0dee4d0 commit 37800ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: bench_runner/plot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class Options:
6565
plt.close("all")
6666

6767
if output_filename.suffix == ".svg":
68-
with tempfile.NamedTemporaryFile(delete=False) as tmp:
68+
with tempfile.NamedTemporaryFile(dir=output_filename.parent, delete=False) as tmp:
6969
with open(output_filename) as fd:
7070
scour.start(Options(), fd, tmp)
7171
output_filename.unlink()

0 commit comments

Comments
 (0)