# Correct way of passing paths in the REPL for a project containing sub folders

**URL:** https://discourse.julialang.org/t/correct-way-of-passing-paths-in-the-repl-for-a-project-containing-sub-folders/30380
**Category:** New to Julia
**Created:** [October 27, 2019, 10:19pm UTC](https://discourse.julialang.org/t/correct-way-of-passing-paths-in-the-repl-for-a-project-containing-sub-folders/30380 "2019-10-27T22:19:46Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)
#### Post date: [October 28, 2019, 4:50am UTC](https://discourse.julialang.org/t/correct-way-of-passing-paths-in-the-repl-for-a-project-containing-sub-folders/30380/2 "2019-10-28T04:50:35Z")

</div>

In similar situations, I usually include something like

```julia
project_path(parts...) = normpath(joinpath(@ __DIR__ , "..", parts...))

```

in the main module file (eg `src/Foo.jl`). Then in the REPL I can do

```julia
using Foo
include(project_path("setpaths.jl"))

```

etc.

---

_[View the full topic](https://discourse.julialang.org/t/correct-way-of-passing-paths-in-the-repl-for-a-project-containing-sub-folders/30380)._
