I am working on making error message locations “clickable” in Emacs. How can I obtain the directory (in Julia) that
./loading.jl and the other files are resolved in the example below:
julia> include("/tmp/Foo.jl") WARNING: replacing module Foo ERROR: LoadError: UndefVarError: T not defined Stacktrace:  include_from_node1(::String) at ./loading.jl:576  include(::String) at ./sysimg.jl:14 while loading /tmp/Foo.jl, in expression starting on line 9
It should work for binary and source compiled distributions.
Base.JULIA_HOME takes me to the executable, in can join it with
../share/julia/base/ for binary distributions or
base/ for compiled source, but I imagine that there is something portable, I just could not find it.