When you call using ModuleName , Julia looks at paths that are already defined in the LOAD_PATH constant.
To check the contents of the LOAD_PATH constant, just name it:
julia>LOAD_PATH 2-element Array{ByteString,1}: "C:\\Users\\AliReza\\AppData\\Local\\Julia-0.4.0\\local\\share\\julia\\site\\v0 .4" "C:\\Users\\AliReza\\AppData\\Local\\Julia-0.4.0\\share\\julia\\site\\v0.4"
And what is your current working directory?
julia> pwd() "C:\\Users\\AliReza\\AppData\\Local\\Julia-0.4.0"
You can include create a file related to the current location if it exists:
julia> include("missedModule.jl") ERROR: could not open file C:\Users\AliReza\AppData\Local\Julia-0.4.0\missedModu le.jl in include at boot.jl:261 in include_from_node1 at loading.jl:304
You will get another error if you want to load a module that does not exist in LOAD_PATH
julia> using LocalModule ERROR: ArgumentError: LocalModule not found in path in require at loading.jl:233
If LocalModule.jl is a file in the local working directory and you want to download it using using , click the current path to LOAD_PATH , push!(LOAD_PATH, pwd()) , now you can load LocalModule, using , from the working directory.
source share