diff --git a/src/init.jl b/src/init.jl index a3f955be5..ef314c977 100644 --- a/src/init.jl +++ b/src/init.jl @@ -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")