# Using .MyModule what is the period for?

**URL:** https://discourse.julialang.org/t/using-mymodule-what-is-the-period-for/60217
**Category:** New to Julia
**Created:** [April 29, 2021, 3:35am UTC](https://discourse.julialang.org/t/using-mymodule-what-is-the-period-for/60217 "2021-04-29T03:35:17Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Hannah\_Rocio\_Santa\_C](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hannah_rocio_santa_c/32/21913_2.png) [@Hannah\_Rocio\_Santa\_C](https://discourse.julialang.org/u/Hannah_Rocio_Santa_C)
#### Post date: [April 29, 2021, 3:35am UTC](https://discourse.julialang.org/t/using-mymodule-what-is-the-period-for/60217/1 "2021-04-29T03:35:17Z")

</div>

Hello,

I was reading about modules([Workflow Tips · The Julia Language](https://docs.julialang.org/en/v1/manual/workflow-tips/)), and saw that one should add with using .MyModule (or import). I was wondering what the period does? Thank you!

---

<div class="post-metadata">

### Author: ![gustaphe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gustaphe/32/18174_2.png) [@gustaphe](https://discourse.julialang.org/u/gustaphe)
#### Post date: [April 29, 2021, 4:42am UTC](https://discourse.julialang.org/t/using-mymodule-what-is-the-period-for/60217/2 "2021-04-29T04:42:17Z")

</div>

[https://docs.julialang.org/en/v1/manual/modules/#Submodules-and-relative-paths](https://docs.julialang.org/en/v1/manual/modules/#Submodules-and-relative-paths)

I’ve never used this, probably don’t worry about it.

---

<div class="post-metadata">

### Author: ![Hannah\_Rocio\_Santa\_C](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hannah_rocio_santa_c/32/21913_2.png) [@Hannah\_Rocio\_Santa\_C](https://discourse.julialang.org/u/Hannah_Rocio_Santa_C)
#### Post date: [April 29, 2021, 5:19am UTC](https://discourse.julialang.org/t/using-mymodule-what-is-the-period-for/60217/3 "2021-04-29T05:19:31Z")

</div>

I see, thank you. Does one always define relative modules?

---

<div class="post-metadata">

### Author: ![gustaphe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gustaphe/32/18174_2.png) [@gustaphe](https://discourse.julialang.org/u/gustaphe)
#### Post date: [April 29, 2021, 5:34am UTC](https://discourse.julialang.org/t/using-mymodule-what-is-the-period-for/60217/4 "2021-04-29T05:34:04Z")

</div>

Like I said, I never have. It’s just one possible workflow.

---

<div class="post-metadata">

### Author: ![Hannah\_Rocio\_Santa\_C](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hannah_rocio_santa_c/32/21913_2.png) [@Hannah\_Rocio\_Santa\_C](https://discourse.julialang.org/u/Hannah_Rocio_Santa_C)
#### Post date: [April 29, 2021, 3:01pm UTC](https://discourse.julialang.org/t/using-mymodule-what-is-the-period-for/60217/5 "2021-04-29T15:01:59Z")

</div>

I see. Could you direct me to an explanation where they explain how to define and refer to non relative modules? Thank you!

---

<div class="post-metadata">

### Author: ![gustaphe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gustaphe/32/18174_2.png) [@gustaphe](https://discourse.julialang.org/u/gustaphe)
#### Post date: [April 29, 2021, 3:23pm UTC](https://discourse.julialang.org/t/using-mymodule-what-is-the-period-for/60217/6 "2021-04-29T15:23:07Z")

</div>

You put a module in a file. You source that file using `include` (or `includet` from `Revise.jl` for a smoother development experience). You `using` that module. Done.

If you’re developing something a bit more reusable, you can use `PkgTemplates` to generate a standardized directory for it in `~/.julia/dev/MyPackage`, and then you use `]dev MyPackage` and `using MyPackage`. `Revise` is still recommended for this.

Basically the “Revise based workflow” described in your link.

---

<div class="post-metadata">

### Author: ![Henrique\_Becker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrique_becker/32/15443_2.png) [@Henrique\_Becker](https://discourse.julialang.org/u/Henrique_Becker)
#### Post date: [April 29, 2021, 3:47pm UTC](https://discourse.julialang.org/t/using-mymodule-what-is-the-period-for/60217/7 "2021-04-29T15:47:15Z")

</div>

I use this a lot in [my code](https://github.com/henriquebecker91/GuillotineModels.jl/blob/24ff9f42ee71071dfb2dc433035e328c5299dc9b/src/CommandLine.jl). If you use an Unix system you should be acquainted with `.` (current folder) and `..` (parent folder), this is basically the same thing but for the modules hierarchy instead of a filesystem hierarchy, and scaling with the number of dots (so `...` means parent of parent, and so on). If you do not put any dots it is understood that the module comes from a package in the environment and will check the package outer modules. So you use this notation if your package/module divided into many sub-modules and you need to import things between them, what is not very common.

---

<div class="post-metadata">

### Author: ![Hannah\_Rocio\_Santa\_C](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hannah_rocio_santa_c/32/21913_2.png) [@Hannah\_Rocio\_Santa\_C](https://discourse.julialang.org/u/Hannah_Rocio_Santa_C)
#### Post date: [April 29, 2021, 3:59pm UTC](https://discourse.julialang.org/t/using-mymodule-what-is-the-period-for/60217/8 "2021-04-29T15:59:15Z")

</div>

That makes sense, thank you!
