How to find out which files are loaded by the Julia startup process?

I thought this info was in the documentation, but now I don’t seem to be able to find it.

Is there a way to reverse-engineer which files have been loaded by Julia at startup?

Normally, a user would expect the startup.jl file to be loaded. This file usually would be placed in the users home directory under ~/.julia/config/startup.jl.

I am currently looking at a Docker Container, the Dockerfile for which creates a startup.jl file in a different location.

I am trying to figure out if there is a way to get a list of files which were loaded by Julia at startup. Either by

  • querying the REPL directly?
  • finding some documentation which describes a list of files and directories which are searched on startup

Is anyone able to point me in the right direction? Thanks

I managed to find some info here actually.

And in combination with this doc page:

--startup-file={yes*|no}
Load JULIA_DEPOT_PATH/config/startup.jl; if JULIA_DEPOT_PATH environment variable is unset, load ~/.julia/config/startup.jl

I would assume the asterisk * means that the marked option is the default?

Reason this is useful: The Dockerfile I mentioned previously does define the environment variable JULIA_DEPOT_PATH.

1 Like

Yes