JuliaLang/julia

relative using/import should search current directory

Open

#4.600 aberto em 21 de out. de 2013

Ver no GitHub
 (175 comments) (27 reactions) (1 assignee)Julia (5.773 forks)batch import
designhelp wantedmodules

Métricas do repositório

Stars
 (48.709 stars)
Métricas de merge de PR
 (Mesclagem média 20d 6h) (157 fundiu PRs em 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.

Guia do colaborador