Julia add to path command

How can I add the path to my current path in Julia so that I can organize files and modules in folders, but still access them?

+3
path julia-lang


source to share


1 answer


Note. The following paths can be Unix specific.

You can add the file .juliarc.jl

to your home directory and include the line



@everywhere push!(LOAD_PATH,"/path/to/my/code")

      

@everywhere

makes sure it works even if you run julia with multiple workers.

+5


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics