# Importing a non-dependency inside a registered package

**URL:** <https://discourse.julialang.org/t/importing-a-non-dependency-inside-a-registered-package/11633>\
**Category:** General Usage\
**Created:** [June 13, 2018, 3:07am UTC](https://discourse.julialang.org/t/importing-a-non-dependency-inside-a-registered-package/11633 "2018-06-13T03:07:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fjarri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fjarri/32/630_2.png) [@fjarri](https://discourse.julialang.org/u/fjarri)\
**Post date:** [June 13, 2018, 3:07am UTC](https://discourse.julialang.org/t/importing-a-non-dependency-inside-a-registered-package/11633/1 "2018-06-13T03:07:14Z")

</div>

Julia version: 0.7 alpha

It seems that `using` a package in some file belonging to a registered package gives a `LoadError` if it is not explicitly listed as a dependency. Is there a way to work around that? I understand why it is useful when importing a package known at compile time, but in my case I want to import it in runtime. Specifically, I have some code that worked in v0.6, looking roughly like

```
module MyRegisteredModule

function load()
    push!(LOAD_PATH, "some_dir")
    eval(quote
        using MyDynamicModule
    end)
end

end

```

where `some_dir` contains a file `MyDynamicModule.jl` with the module definition.

Is there a way to make dynamic loading work in v0.7?
