Skip to content

Commit da52c05

Browse files
pushfirst to standard_loadpath during init
1 parent 061a57a commit da52c05

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/DataDeps.jl

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ datadeps_scratch_dir = ""
3535

3636
function __init__()
3737
global datadeps_scratch_dir = @get_scratch!("datadeps")
38+
pushfirst!(standard_loadpath, datadeps_scratch_dir)
3839
end
3940

4041
function _precompile_()

src/locations.jl

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ const standard_loadpath = joinpath.([
1515
"/usr/share", "/usr/local/share"] # Unix Filestructure
1616
end], "datadeps")
1717

18-
pushfirst!(standard_loadpath, joinpath(Base.DEPOT_PATH, "datadeps"))
18+
# NOTE: the scratchspace is pushed to the front during __init__()
19+
1920

2021
# ensure at least something in the loadpath exists when instaleld
2122
mkpath(first(standard_loadpath))

0 commit comments

Comments
 (0)