Looks right to me.

    include(Pkg.dir("Images","src","Images.jl"))

would be a bit more robust, though. (Shorter too.)

--Tim

On Sunday, August 02, 2015 11:49:37 PM Yakir Gagnon wrote:
> In the documents (p. 175):
> 
>    - include(“DummyModule.jl”) (page 309) loads the file on just a single
>    process (whichever one executes the statement).
>    - using DummyModule causes the module to be loaded on all processes;
>    however, the module is brought into scope only on the one executing the
>    statement.
> 
> But how would one load say Images.jl (just a random example) on only one
> process (and maybe import only some functions, say imwrite)? Am I supposed
> to:
> 
> include(joinpath(homedir(),".julia/v0.4/Images/src/Images.jl"))
> 
> ​

Reply via email to