It seems using/import
is equivalent to include
when loading a file in LOAD_PATH
:
#test.jl in pwd()
x = 1
module Foo
y = 2
export y
end
######
julia> push!(LOAD_PATH,pwd())
julia> import test
WARNING: requiring "test" in module "Main" did not define a corresponding module.
julia> whos()
Base 34459 KB Module
Core 12386 KB Module
Foo 1194 bytes Module
Main 41327 KB Module
ans 0 bytes Void
x 8 bytes Int64