From b27177e7a90950f32c1fe13d822733d05f558855 Mon Sep 17 00:00:00 2001 From: t-bltg Date: Tue, 12 Nov 2024 08:59:09 +0100 Subject: [PATCH] fix tempname usage --- src/init.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")