# How to auto import what upper module has imported to the inner module

**URL:** <https://discourse.julialang.org/t/how-to-auto-import-what-upper-module-has-imported-to-the-inner-module/12193>\
**Category:** General Usage\
**Created:** [July 5, 2018, 7:39pm UTC](https://discourse.julialang.org/t/how-to-auto-import-what-upper-module-has-imported-to-the-inner-module/12193 "2018-07-05T19:39:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Qiyamah](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/qiyamah/32/2660_2.png) [@Qiyamah](https://discourse.julialang.org/u/Qiyamah)\
**Post date:** [July 5, 2018, 7:39pm UTC](https://discourse.julialang.org/t/how-to-auto-import-what-upper-module-has-imported-to-the-inner-module/12193/1 "2018-07-05T19:39:58Z")

</div>

Hi fellows,

I have question

```nohighlight
module Outer
   using X.Y.Z
   import A.B
   
   module GeneratedInner
     #include statements 
  end
end

```

I need to write a macro which can get what outer module has imported and re import them in the newly generatedInner module.

So is there a function which can tell me what the outer module has imported?

Thanks
