Skip to content

Commit

Permalink
Add current project as a last depot path in the default setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre committed Mar 21, 2020
1 parent 6447534 commit 173a367
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions base/initdefs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ function append_default_depot_path!(DEPOT_PATH)
path in DEPOT_PATH || push!(DEPOT_PATH, path)
path = abspath(Sys.BINDIR, "..", "share", "julia")
path in DEPOT_PATH || push!(DEPOT_PATH, path)
if (project = active_project()) !== nothing
path = abspath(dirname(project), ".julia")
path in DEPOT_PATH || push!(DEPOT_PATH, path)
end
return DEPOT_PATH
end

function init_depot_path()
Expand Down

0 comments on commit 173a367

Please sign in to comment.