# Adding my module to path

**URL:** <https://discourse.julialang.org/t/adding-my-module-to-path/54502>\
**Category:** New to Julia\
**Created:** [February 3, 2021, 12:46am UTC](https://discourse.julialang.org/t/adding-my-module-to-path/54502 "2021-02-03T00:46:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxkapur](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maxkapur/32/21208_2.png) [@maxkapur](https://discourse.julialang.org/u/maxkapur)\
**Post date:** [February 3, 2021, 12:46am UTC](https://discourse.julialang.org/t/adding-my-module-to-path/54502/1 "2021-02-03T00:46:06Z")

</div>

I created a module `MyModule` and I am working on developing the test files for it. At the top of the test file, I wrote `using MyModule` and got an error saying `Package MyModule not found in current path`. I was able to rectify this by running

```
push!(LOAD_PATH, "C:\\Users\\Max\\MyModule")

```

from within Julia. This works, but the change does not persist after quitting and restarting Julia.

**What do I need to do to ensure that `MyModule` is included in `LOAD_PATH` by default?**

From the documentation, it looks like I need to update the `JULIA_LOAD_PATH` environment variable somehow. But running

```
(base) C:\Windows\system32>SET JULIA_LOAD_PATH="C:\Users\Max\MyModule"

```

from the terminal has no effect. I tried searching manually for the `JULIA_LOAD_PATH` variable in regedit but couldn’t find anything.

---

<div class="post-metadata">

**Author:** ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Post date:** [February 3, 2021, 1:07am UTC](https://discourse.julialang.org/t/adding-my-module-to-path/54502/2 "2021-02-03T01:07:14Z")

</div>

Probably what you want to do, while developing the package, is start Julia with

```julia
julia --project

```

From the package directory. By doing that you will be in an environment where your package is available. No need to modify the path.

---

<div class="post-metadata">

**Author:** ![maxkapur](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maxkapur/32/21208_2.png) [@maxkapur](https://discourse.julialang.org/u/maxkapur)\
**Post date:** [February 3, 2021, 1:42am UTC](https://discourse.julialang.org/t/adding-my-module-to-path/54502/3 "2021-02-03T01:42:38Z")

</div>

I was able to configure this in Atom with Juno by going Juno \> Settings and adding `--project` to Additional Julia Startup Arguments under Julia Options. Thank you!
