You shouldn't be using include here – the way to do this is to make sure that moduleFile.jl is in your LOAD_PATH and then do `using moduleFile` or `import moduleFile`.
On Fri, Dec 26, 2014 at 3:02 AM, Kuba Roth <kuba.r...@gmail.com> wrote: > Hi there, > I'd like to load a custom module from a custom location. In order to do > this via import/using I need to first put include(moduleFile.jl) statement. > Every time I have include() in more then one file I get: Warning: > replacing module. > > The custom module is in the same location as my main file and the > directory where files are located are not in the LOAD_PATH. > If I omit "include" this leads me to a "not found" error. > > Is there any kind of include guards I need to add to silent this warning? > Or perhaps there is a better way to work load modules from custom > locations? Can you please provide some guidelines. > > Thanks, > kuba >