Why isn't the current script's dir in the LOAD_PATH?


#1

I have a script consisting of app.jl and Worker.jl. The Worker module’s functions are used in a remote_do() call from app.jl.
However, to make this work I have to begin app.jl with:

push!(LOAD_PATH, dirname(PROGRAM_FILE))
addprocs()

The first is to add app.jl’s path to the LOAD_PATH – I don’t really understand why it isn’t added by default?

(The second is to make the app use all the available processors.)