# How to run in 0.7 pkg mode by include() in script ? \] not works!

**URL:** <https://discourse.julialang.org/t/how-to-run-in-0-7-pkg-mode-by-include-in-script-not-works/15067>\
**Category:** General Usage\
**Created:** [September 17, 2018, 1:22pm UTC](https://discourse.julialang.org/t/how-to-run-in-0-7-pkg-mode-by-include-in-script-not-works/15067 "2018-09-17T13:22:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![programista](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/programista/32/5372_2.png) [@programista](https://discourse.julialang.org/u/programista)\
**Post date:** [September 17, 2018, 1:22pm UTC](https://discourse.julialang.org/t/how-to-run-in-0-7-pkg-mode-by-include-in-script-not-works/15067/1 "2018-09-17T13:22:25Z")

</div>

in 0.7 key “]” is starting Pkg mode… How to run this mode from script by include(“script.jl” ) ? After usingn script ] is ERROR: LoadError: syntax: unexpected “]”  
Paul

---

<div class="post-metadata">

**Author:** ![carstenbauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carstenbauer/32/4981_2.png) [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Post date:** [September 17, 2018, 2:06pm UTC](https://discourse.julialang.org/t/how-to-run-in-0-7-pkg-mode-by-include-in-script-not-works/15067/2 "2018-09-17T14:06:00Z")

</div>

You can `using Pkg` to get a pre-0.7 like way of using `Pkg`.

---

<div class="post-metadata">

**Author:** ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Post date:** [September 17, 2018, 2:20pm UTC](https://discourse.julialang.org/t/how-to-run-in-0-7-pkg-mode-by-include-in-script-not-works/15067/3 "2018-09-17T14:20:53Z")

</div>

Pkg.pkg"add Distributions"

gives same effect as doing this from the (Pkg) prompt.
