# Any examples of "package directories"

**URL:** <https://discourse.julialang.org/t/any-examples-of-package-directories/34532>\
**Category:** General Usage\
**Created:** [February 12, 2020, 6:46pm UTC](https://discourse.julialang.org/t/any-examples-of-package-directories/34532 "2020-02-12T18:46:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DevJac](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@DevJac](https://discourse.julialang.org/u/DevJac)\
**Post date:** [February 12, 2020, 6:46pm UTC](https://discourse.julialang.org/t/any-examples-of-package-directories/34532/1 "2020-02-12T18:46:29Z")

</div>

I was reading [Code Loading · The Julia Language](https://docs.julialang.org/en/v1/manual/code-loading/#Package-directories-1) , and it looks like just what I needed.

If I understand correctly, a “package directory” is a directory of packages, and those “packages” can be as simple as a single Julia file: `X.jl` is mentioned in the docs. This would allow me to configure a directory of many “packages” without having to have many “Project.toml” files? Do I understand that correctly?

Are there any examples of these package directories. I couldn’t get it to work.

---

<div class="post-metadata">

**Author:** ![DevJac](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@DevJac](https://discourse.julialang.org/u/DevJac)\
**Post date:** [February 12, 2020, 8:44pm UTC](https://discourse.julialang.org/t/any-examples-of-package-directories/34532/2 "2020-02-12T20:44:02Z")

</div>

I did get it to work. To be clear, I can do `import Foo`, where `Foo` is one of my own modules, and `Foo` does not have it’s own git repository, nor does it have a related `Package.toml`.

You just need to modify the [`LOAD_PATH`](https://docs.julialang.org/en/v1/manual/environment-variables/#JULIA_LOAD_PATH-1), and then you can have `Foo.jl`, or `Foo/src/Foo.jl`, etc, as described in the documentation I linked in the original post. Those files (`Foo.jl`, etc) need to be in the `LOAD_PATH` though.
