# "Merge" environments

**URL:** <https://discourse.julialang.org/t/merge-environments/19742>\
**Category:** General Usage\
**Tags:** question\
**Created:** [January 17, 2019, 10:42am UTC](https://discourse.julialang.org/t/merge-environments/19742 "2019-01-17T10:42:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jw3126](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jw3126/32/3086_2.png) [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Post date:** [January 17, 2019, 10:42am UTC](https://discourse.julialang.org/t/merge-environments/19742/1 "2019-01-17T10:42:38Z")

</div>

I have a Project+Manifest file and I would like to add packages as specified by the Manifest file into into another environment (say the global one). Is this possible?

---

<div class="post-metadata">

**Author:** ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Post date:** [January 17, 2019, 2:43pm UTC](https://discourse.julialang.org/t/merge-environments/19742/2 "2019-01-17T14:43:00Z")

</div>

Yes, put them all in the `LOAD_PATH`. The earlier ones take precedence but they are effectively merged.

---

<div class="post-metadata">

**Author:** ![ettersi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ettersi/32/6829_2.png) [@ettersi](https://discourse.julialang.org/u/ettersi)\
**Post date:** [July 1, 2020, 2:22am UTC](https://discourse.julialang.org/t/merge-environments/19742/3 "2020-07-01T02:22:38Z")

</div>

In concrete terms, I believe Stefan’s answer means

```julia
push!(LOAD_PATH, "path/to/your/Project.toml")

```

In Julia 1.4, the default value of `LOAD_PATH` is

```julia
julia> LOAD_PATH
3-element Array{String,1}:
 "@"
 "@v#.#"
 "@stdlib"

```

which expands to

```julia
julia> Base.load_path()
2-element Array{String,1}:
 "/home/ettersi/.julia/environments/v1.4/Project.toml"
 "/opt/julia/julia-1.4.2/share/julia/stdlib/v1.4"

```

in the default environment, and

```julia
julia> Base.load_path()
3-element Array{String,1}:
 "/path/to/package/Project.toml"
 "/home/ettersi/.julia/environments/v1.4/Project.toml"
 "/opt/julia/julia-1.4.2/share/julia/stdlib/v1.4"

```

if you activated a package environment.

Note that this in particular means that the packages in your default environment are available even when you activate a package environment.
