# Location of package wrt test script

**URL:** <https://discourse.julialang.org/t/location-of-package-wrt-test-script/10475>\
**Category:** General Usage\
**Created:** [April 21, 2018, 11:29pm UTC](https://discourse.julialang.org/t/location-of-package-wrt-test-script/10475 "2018-04-21T23:29:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rakeshvar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rakeshvar/32/3613_2.png) [@rakeshvar](https://discourse.julialang.org/u/rakeshvar)\
**Post date:** [April 21, 2018, 11:29pm UTC](https://discourse.julialang.org/t/location-of-package-wrt-test-script/10475/1 "2018-04-21T23:29:21Z")

</div>

I want to develop a private package (for a few years before releasing it on github). I was wondering what the best workflow is. I checked [workflow](https://docs.julialang.org/en/release-0.6/manual/workflow-tips/), I understand what it says except that it does not mention where the `Tmp.jl` file should be.

Here is what my code structure looks like. I am in $HOME

```julia
Bajaboost.jl/
 |- src/
     |- Bajaboost.jl (include()s the rest.jl, to give the Bajaboost module)
     |- rest.jl
 |- testbaja.ipynb

```

`testbaja.ipynb` is a jupyter `notebook`, where I would say

```julia
# Cell 1
import Bajaboost

# Cell 2
    # make calls

# Cell 3
reload("BajaBoost")

# Go up to Cell 2 and repeat

```

I get an error

```julia
ArgumentError: Module Bajaboost not found in current path.
Run `Pkg.add("Bajaboost")` to install the Bajaboost package.

```

Where is `julia` looking for the package to `import`? I want to approximately maintain the directory structure mentioned above, since that will be my private repo. Thanks.

---

<div class="post-metadata">

**Author:** ![Ralph\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ralph_smith/32/10344_2.png) [@Ralph\_Smith](https://discourse.julialang.org/u/Ralph_Smith)\
**Post date:** [April 22, 2018, 12:12am UTC](https://discourse.julialang.org/t/location-of-package-wrt-test-script/10475/2 "2018-04-22T00:12:26Z")

</div>

You can use `LOAD_PATH` for this. See under [modules](https://docs.julialang.org/en/release-0.6/manual/modules.html#Module-file-paths-1) in the manual. To supplement that section: if you have in your `.juliarc.jl` file:

```julia
push!(LOAD_PATH, expanduser("~/julia-local"))

```

then `Bajaboost.jl/` should be a subdirectory of `$(HOME)/julia-local`.

---

<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:** [April 22, 2018, 9:04am UTC](https://discourse.julialang.org/t/location-of-package-wrt-test-script/10475/3 "2018-04-22T09:04:35Z")

</div>

For a local workflow, you may also be interested in

[https://github.com/tpapp/RoguePkg.jl](https://github.com/tpapp/RoguePkg.jl)

[https://github.com/tpapp/LocalCoverage.jl](https://github.com/tpapp/LocalCoverage.jl)

Note that `Pkg3` will obviate the need for the first one soon.

---

<div class="post-metadata">

**Author:** ![daniel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/daniel/32/6480_2.png) [@daniel](https://discourse.julialang.org/u/daniel)\
**Post date:** [April 22, 2018, 10:17am UTC](https://discourse.julialang.org/t/location-of-package-wrt-test-script/10475/4 "2018-04-22T10:17:04Z")

</div>

Another trick is to create a symbolic link from your local directory to the package directory, something like

```julia
ln -s ~/Bajaboost.jl ~/.julia/v0.6/Bajaboost

```

---

<div class="post-metadata">

**Author:** ![rakeshvar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rakeshvar/32/3613_2.png) [@rakeshvar](https://discourse.julialang.org/u/rakeshvar)\
**Post date:** [October 2, 2018, 12:12am UTC](https://discourse.julialang.org/t/location-of-package-wrt-test-script/10475/5 "2018-10-02T00:12:38Z")

</div>

Does this soft-linking trick work on v0.7, v1.0 ?

---

<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 2, 2018, 7:11am UTC](https://discourse.julialang.org/t/location-of-package-wrt-test-script/10475/6 "2018-10-02T07:11:19Z")

</div>

For v0.7+, just use

```julia
pkg> dev path/to/package

```
