JuliaLang/julia

relative using/import should search current directory

Open

#4600 aperta il 21 ott 2013

Vedi su GitHub
 (175 commenti) (27 reazioni) (1 assegnatario)Julia (5773 fork)batch import
designhelp wantedmodules

Metriche repository

Star
 (48.709 star)
Metriche merge PR
 (Merge medio 20g 6h) (157 PR mergiate in 30 g)

Descrizione

When I do

# Main.jl
module Main
  using .Foo
end

and there's a file called Foo.jl in the same directory as Main.jl it should be loaded. I suspect that relative using should also not look in the global require places – i.e. Pkg.dir() and then LOAD_PATH. The same applies to import.

Guida contributor