JuliaLang/julia

relative using/import should search current directory

Open

#4,600 建立於 2013年10月21日

在 GitHub 查看
 (175 留言) (27 反應) (1 負責人)Julia (48,709 star) (5,773 fork)batch import
designhelp wantedmodules

描述

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.

貢獻者指南