JuliaLang/julia

relative using/import should search current directory

Open

#4.600 geöffnet am 21. Okt. 2013

Auf GitHub ansehen
 (175 Kommentare) (27 Reaktionen) (1 zugewiesene Person)Julia (5.773 Forks)batch import
designhelp wantedmodules

Repository-Metriken

Stars
 (48.709 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 20T 6h) (157 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide