# How to load a module from the current directory?

**URL:** <https://discourse.julialang.org/t/how-to-load-a-module-from-the-current-directory/21727>\
**Category:** New to Julia\
**Created:** [March 11, 2019, 9:15am UTC](https://discourse.julialang.org/t/how-to-load-a-module-from-the-current-directory/21727 "2019-03-11T09:15:48Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![MA\_Laforge](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ma_laforge/32/385_2.png) [@MA\_Laforge](https://discourse.julialang.org/u/MA_Laforge)\
**Post date:** [February 13, 2021, 11:56pm UTC](https://discourse.julialang.org/t/how-to-load-a-module-from-the-current-directory/21727/6 "2021-02-13T23:56:07Z")

</div>

I don’t think this particular behaviour is documented yet. If it is, it wasn’t visible enough for me to find it: I as well struggled with this issue a few months ago.

### The confusion

In particular, I had to look through Julia’s code to understand that any entry in `LOAD_PATH`, whose directory contains a `Project.toml` file, will be treated as a “project environment” _ **only** _. In other words: having a `Project.toml` file inhibits Julia from using it as a “package repository”.

### An introduction, for now

At the moment, I would suggest you look at some of the posts I have written, starting with the “tips” found here:  
 → [Proper way of organizing code into subpackages - #3 by MA\_Laforge](https://discourse.julialang.org/t/proper-way-of-organizing-code-into-subpackages/52835/3)

I also suggest you read the two posts of mine that directly follow it. I tried my best to give useful insight.

You might also be interested to take a look at the improved package/module documentation (v1.7):  
 → [Modules · The Julia Language](https://docs.julialang.org/en/v1.7-dev/manual/modules/)

Overall though, I think the package/module documentation still needs some improvement (I just haven’t figured out how, exactly).

---

_[View the full topic](https://discourse.julialang.org/t/how-to-load-a-module-from-the-current-directory/21727)._
