Skip to content

Commit

Permalink
fix tempname usage
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg committed Nov 12, 2024
1 parent a6147ff commit b27177e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/init.jl
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ include(_path(backend_name()))
$func() = begin # evaluate each example in a local scope
$(_examples[i].exprs)
$i == 1 || return # only for one example
fn = joinpath(scratch_dir, tempname())
fn = tempname(scratch_dir)
pl = current()
show(devnull, pl)
showable(MIME"image/png"(), pl) && savefig(pl, "$fn.png")
Expand Down

0 comments on commit b27177e

Please sign in to comment.