Skip to content

Commit 7944c4c

Browse files
authored
interpolate scratch_dir to avoid precompilation failure in 1.12 (#5072)
* interpolate scratch_dir to avoid precompilation failure in 1.12 * rename scratch_dir to _scratch_dir to avoid name clash * i nstead or renaming scratch_dir, use explicit import for @get_scratch!
1 parent e6166b6 commit 7944c4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/init.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Scratch
1+
using Scratch: @get_scratch!
22
using REPL
33
import Base64
44

@@ -125,7 +125,7 @@ include(_path(backend_name()))
125125
$func() = begin # evaluate each example in a local scope
126126
$(_examples[i].exprs)
127127
$i == 1 || return # only for one example
128-
fn = tempname(scratch_dir)
128+
fn = tempname($scratch_dir)
129129
pl = current()
130130
show(devnull, pl)
131131
showable(MIME"image/png"(), pl) && savefig(pl, "$fn.png")

0 commit comments

Comments
 (0)