JuliaLang/julia

relative using/import should search current directory

Open

#4,600 opened on 2013年10月21日

GitHub で見る
 (175 comments) (27 reactions) (1 assignee)Julia (5,773 forks)batch import
designhelp wantedmodules

Repository metrics

Stars
 (48,709 stars)
PR merge metrics
 (平均マージ 20d 6h) (30d で 157 merged PRs)

説明

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.

コントリビューターガイド