Skip to content

Commit

Permalink
Fix tildes in --project argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Moelf committed May 6, 2019
1 parent f189ae4 commit 8d727a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions base/initdefs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ function init_load_path()
project = (JLOptions().project != C_NULL ?
unsafe_string(Base.JLOptions().project) :
get(ENV, "JULIA_PROJECT", nothing))
if project !=nothing && occursin('~', project)
project = project[findlast(isequal('~'), project):end]
project = expanduser(project)
end
HOME_PROJECT[] =
project === nothing ? nothing :
project == "" ? nothing :
Expand Down

0 comments on commit 8d727a8

Please sign in to comment.