-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tildes in the --project argument #28638
Labels
good first issue
Indicates a good issue for first-time contributors to Julia
help wanted
Indicates that a maintainer wants help on an issue or pull request
Comments
Yes, seems like a good idea. |
StefanKarpinski
added
good first issue
Indicates a good issue for first-time contributors to Julia
help wanted
Indicates that a maintainer wants help on an issue or pull request
labels
Apr 22, 2019
I'd like to fix this, is the argument handled in here? Line 410 in 1be1deb
|
That's where the option is parsed but it's better to handle the user expansion later, e.g.: diff --git a/base/initdefs.jl b/base/initdefs.jl
index 479f3bd447..0eef60b01c 100644
--- a/base/initdefs.jl
+++ b/base/initdefs.jl
@@ -214,6 +214,9 @@ function init_load_path()
project = (JLOptions().project != C_NULL ?
unsafe_string(Base.JLOptions().project) :
get(ENV, "JULIA_PROJECT", nothing))
+ if project != nothing
+ project = expanduser(project)
+ end
HOME_PROJECT[] =
project === nothing ? nothing :
project == "" ? nothing : You'll need to verify that this works and test it. |
Apparently
|
With #31932 :
|
fredrikekre
pushed a commit
that referenced
this issue
Jun 4, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
good first issue
Indicates a good issue for first-time contributors to Julia
help wanted
Indicates that a maintainer wants help on an issue or pull request
The
--project
command line argument does not expand tildes. Perhaps it should?Would expect:
cc @fredrikekre since #28625 might be related?
The text was updated successfully, but these errors were encountered: