How to add a folder path in your .jl script

LOAD_PATH is relevant to loading of packages and modules via import or using. It’s content has no bearing on code inclusion with include.

You either need to specify the full path when using include (relative to the path of the calling file, or the working dir in the REPL), or wrap the functions in a module and load it via import.

The latter method is certainly the more julian.

See also: Newbie question on search path

3 Likes