I’m missing something as far as how to work with multiple files.
I have a directory where I keep two *.jl files, say “core.jl” and “scripts.jl” One has most of the core analytical code, the other has some very project specific scripts. At the top of scripts.jl, I have:
using DataFrames, Distributions, StatsBase, MyModule
where MyModule is in core.jl. If I run scripts.jl without running core.jl first, I get:
LoadError: ArgumentError: Module MyModule not found in current path.
I tried putting the following code at the top of scripts.jl (path edited for brevity):
if length(findin("C:\\MyProject17",LOAD_PATH)) == 0 push!(LOAD_PATH,"C:\\MyProject17") end
This had no effect.
If I run core.jl first, everything works fine, so this is more of an annoyance. In the off-chance this is an actual issue, happy to post there, but I figure I am most likely just missing something on how to properly link the files. I’m using Julia 0.6/Atom/Juno if it makes a difference.