# Project Scope for Tag Event Scripts

**URL:** <https://forum.inductiveautomation.com/t/project-scope-for-tag-event-scripts/8719>\
**Category:** Ignition\
**Created:** [July 12, 2014, 8:25pm UTC](https://forum.inductiveautomation.com/t/project-scope-for-tag-event-scripts/8719 "2014-07-12T20:25:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [July 12, 2014, 8:25pm UTC](https://forum.inductiveautomation.com/t/project-scope-for-tag-event-scripts/8719/1 "2014-07-12T20:25:33Z")

</div>

The Ignition User Manual for Tag Event Scripts says:“The scripts written may use any scripting libraries available in the gateway scope, as tags are always executed in the gateway.”

However, calling a function in a project.\* Python module results in a NameError(“global name ‘project’ is not defined”) exception. project.\* modules are in the gateway and client scopes.

Calling a function in a shared.\* module does work.

I just want to verify that it is the plan that project.\* Python modules do not work in Tag Event Scripts. It makes sense to me that they shouldn’t work since tags are not unique to any particular project.

---

<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:** [July 16, 2014, 11:44pm UTC](https://forum.inductiveautomation.com/t/project-scope-for-tag-event-scripts/8719/2 "2014-07-16T23:44:28Z")

</div>

Yeah, I suppose the user manual could be more clear on that. The tags cannot access project scripts, because they are not part of the project.

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [July 17, 2014, 5:00am UTC](https://forum.inductiveautomation.com/t/project-scope-for-tag-event-scripts/8719/3 "2014-07-17T05:00:40Z")

</div>

Okay, thanks.
