JuliaLang/julia

relative using/import should search current directory

Open

#4 600 ouverte le 21 oct. 2013

Voir sur GitHub
 (175 commentaires) (27 réactions) (1 assigné)Julia (5 773 forks)batch import
designhelp wantedmodules

Métriques du dépôt

Stars
 (48 709 stars)
Métriques de merge PR
 (Merge moyen 20j 6h) (157 PRs mergées en 30 j)

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.

Guide contributeur