There were short answers, but I would like to provide a more complete answer, if possible.
When you start using MyModule, Julia searches for it only in the list of directories known as yours LOAD_PATH. If you type LOAD_PATHin Julia REPL, you will get the following:
2-element Array{ByteString,1}:
"/Applications/Julia-0.4.5.app/Contents/Resources/julia/local/share/julia/site/v0.4"
"/Applications/Julia-0.4.5.app/Contents/Resources/julia/share/julia/site/v0.4"
, using Hello. , , Hello LOAD_PATH, .
, .
julia> include("./src/Hello.jl")
, using Hello , . , , . , , include() , LOAD_PATH.
LOAD_PATH
LOAD_PATH , , Julia LOAD_PATH. LOAD_PATH. Julia , import using.
- .basrc, .profile, .zshrc.
export JULIA_LOAD_PATH="/path/to/module/storage/folder"
, .
julia> LOAD_PATH
3-element Array{ByteString,1}:
"/path/to/module/storage/folder"
"/Applications/Julia-0.4.5.app/Contents/Resources/julia/local/share/julia/site/v0.4"
"/Applications/Julia-0.4.5.app/Contents/Resources/julia/share/julia/site/v0.4"
using Hello, Julia ( /path/to/module/storage/folder.
Julia.