Skip to content

relative using/import should search current directory #4600

@StefanKarpinski

Description

@StefanKarpinski

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.

Metadata

Metadata

Labels

designDesign of APIs or of the language itselfhelp wantedIndicates that a maintainer wants help on an issue or pull requestmodules

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions