# What is in your startup.jl?

**URL:** <https://discourse.julialang.org/t/what-is-in-your-startup-jl/18228>\
**Category:** General Usage\
**Created:** [December 2, 2018, 10:24pm UTC](https://discourse.julialang.org/t/what-is-in-your-startup-jl/18228 "2018-12-02T22:24:49Z")\
**Posts on this page:** 1\
**Showing post:** 31

<div class="post-metadata">

**Author:** ![mike\_k](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mike_k/32/211864_2.png) [@mike\_k](https://discourse.julialang.org/u/mike_k)\
**Post date:** [May 10, 2023, 2:46pm UTC](https://discourse.julialang.org/t/what-is-in-your-startup-jl/18228/31 "2023-05-10T14:46:33Z")

</div>

I always use project specific environments. If there does not yet exist one, I create one. If there already exists one, I activate and instantiate it.

```julia
using Pkg
working_directory = dirname(@ __FILE__ )
cd(working_directory)

if Base.active_project() != dirname(@ __FILE__ ) * "/Project.toml"
    pkg"activate ."
    pkg"instantiate"
end

```

---

_[View the full topic](https://discourse.julialang.org/t/what-is-in-your-startup-jl/18228)._
