JuliaLang/julia

relative using/import should search current directory

Open

#4,600 opened on Oct 21, 2013

View on GitHub
 (175 comments) (27 reactions) (1 assignee)Julia (5,773 forks)batch import
designhelp wantedmodules

Repository metrics

Stars
 (48,709 stars)
PR merge metrics
 (Avg merge 20d 6h) (157 merged PRs in 30d)

Description

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