Skip to content

Commit

Permalink
Keep reading from DEPOT_PATH (but don't write to by default)
Browse files Browse the repository at this point in the history
  • Loading branch information
oxinabox authored Feb 13, 2024
1 parent fc543b4 commit 9ebd046
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/locations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
## Core path determining stuff

const standard_loadpath = joinpath.([
homedir(); # Common all systems
# NOTE: the scratchspace is pushed to the front during __init__()
Base.DEPOT_PATH; homedir(); # Common all systems

@static if Sys.iswindows()
vcat(get.(Ref(ENV),
Expand All @@ -15,9 +16,6 @@ const standard_loadpath = joinpath.([
"/usr/share", "/usr/local/share"] # Unix Filestructure
end], "datadeps")

# NOTE: the scratchspace is pushed to the front during __init__()


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

Expand Down

0 comments on commit 9ebd046

Please sign in to comment.