If you use require("script.jl") instead of include, it will search the
LOAD_PATH.Cheers, Kevin On Mon, Mar 10, 2014 at 9:49 PM, Ethan Anderes <[email protected]>wrote: > Hi, > > Is there an addpath equivalent from Matlab? Basically, I have a directory > that contains a bunch of scripts and modules. I've been using include to > run the scripts but don't want to add the full path to each script. For > example, dir is a directory which contains Mod.jl and script.jl. The last > line in the following code gives an error: > > > push!(LOAD_PATH, pwd()*"/dir") > using Mod # this works > include("script.jl") # this doesn't work > > > Is there a way to tell the repl to search in dir when I > include("script.jl")? > > Sorry if I missed this in the documentation... >
