Skip to content

Commit 94fe500

Browse files
authored
Fix precompilation in Julia 1.12 (#5074)
See: #5072
1 parent 433b410 commit 94fe500

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PlotsBase/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

44
const _plotly_local_file_path = Ref{Union{Nothing,String}}(nothing)
@@ -147,7 +147,7 @@ macro precompile_backend(backend_package)
147147
@debug $i
148148
$(PlotsBase._examples[i].exprs)
149149
$i == 1 || return # trigger display only for one example
150-
fn = tempname(scratch_dir)
150+
fn = tempname($scratch_dir)
151151
pl = current()
152152
show(devnull, pl)
153153
if backend_name() :plotlyjs

0 commit comments

Comments
 (0)