# Revise and include order in package under development

**URL:** <https://discourse.julialang.org/t/revise-and-include-order-in-package-under-development/39832>\
**Category:** General Usage\
**Tags:** package, revise\
**Created:** [May 20, 2020, 1:55pm UTC](https://discourse.julialang.org/t/revise-and-include-order-in-package-under-development/39832 "2020-05-20T13:55:37Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![D\_A](https://avatars.discourse-cdn.com/v4/letter/d/8dc957/32.png) [@D\_A](https://discourse.julialang.org/u/D_A)\
**Post date:** [May 20, 2020, 4:37pm UTC](https://discourse.julialang.org/t/revise-and-include-order-in-package-under-development/39832/3 "2020-05-20T16:37:00Z")

</div>

Thank you for your short answer, it made me find this [topic](https://discourse.julialang.org/t/need-to-include-one-file-multiple-times-how-to-avoid-warning/27439/8).

I removed all my includes and put all of them once in the MyModule.jl file, in reverse order (from lowest level to highest), then I imported the modules with double leading periods in other files, and it seems to work!

Strangely, the number of leading periods does not seem to change anything (at least 2, but it can be quite random, which surprised me…).

MyModule.jl:

```julia
include("subsubsubmodule1.jl")
include("subsubsubmodule2.jl")
include("subsubsubmodule3.jl")
include("subsubmodule1.jl")
include("subsubmodule2.jl")
include("submodule1.jl")
include("submodule2.jl")
include("submodule3.jl")

using .SubModule1
…

```

subsubsubmodule2.jl:

```julia
using ..SubSubSubModule1
…

```

I am still not sure if it is the best (cleanest) way to do, but it seems not bad. Maybe I will later find some drawbacks, but I will keep this way for now.

---

_[View the full topic](https://discourse.julialang.org/t/revise-and-include-order-in-package-under-development/39832)._
