# Scripts ignore variables declared in 'module' scope

**URL:** <https://forum.inductiveautomation.com/t/scripts-ignore-variables-declared-in-module-scope/4992>\
**Category:** Ignition\
**Created:** [August 13, 2012, 3:25pm UTC](https://forum.inductiveautomation.com/t/scripts-ignore-variables-declared-in-module-scope/4992 "2012-08-13T15:25:23Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![systemparadox](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@systemparadox](https://forum.inductiveautomation.com/u/systemparadox)\
**Post date:** [September 2, 2013, 7:58am UTC](https://forum.inductiveautomation.com/t/scripts-ignore-variables-declared-in-module-scope/4992/21 "2013-09-02T07:58:34Z")

</div>

That all sounds fantastic. The shared section will also be very useful.

Carl, would it be possible to make it so that we can create packages at the root level from within Ignition, rather than having to create an SDK Module and import them externally?

What I mean is being able to just do ‘import dc’, rather than putting it under app and doing ‘from app import dc’. Being able to put code in a package would also be very helpful (using some sort of **init** system- possibly with a different name unless it works the same as normal Python).

Thanks very much.

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [September 2, 2013, 9:23pm UTC](https://forum.inductiveautomation.com/t/scripts-ignore-variables-declared-in-module-scope/4992/22 "2013-09-02T21:23:20Z")

</div>

Possibly. I’ll keep it in mind.

---

<div class="post-metadata">

**Author:** ![pdibenedetto](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pdibenedetto/32/6364_2.png) [@pdibenedetto](https://forum.inductiveautomation.com/u/pdibenedetto)\
**Post date:** [September 3, 2013, 11:27pm UTC](https://forum.inductiveautomation.com/t/scripts-ignore-variables-declared-in-module-scope/4992/23 "2013-09-03T23:27:05Z")

</div>

[quote=“Carl.Gould”]We hope to address this in 7.7

What we’ll probably do is start phasing out the existing “app” scripts in favor of a new style of script modules that will have correct scoping and whose scripts will be individually locked. We also hope to introduce a “shared” script environment that would be global across all projects.[/quote]

😃 ![:prayer:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/e5a7e3b63facc151ea73e3b45db7bdb3d4bdc316.gif ":prayer:") ![:thumb_left:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/e26afb081ddde6df016df6ee49159cf56aaca688.gif ":thumb\_left:") ![:thumb_right:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/2026e28c0c425034352c1b75807edf956adc75f4.gif ":thumb\_right:")

[Previous page](https://forum.inductiveautomation.com/t/scripts-ignore-variables-declared-in-module-scope/4992.md?page=1)
