# Global script modules

**URL:** <https://forum.inductiveautomation.com/t/global-script-modules/5708>\
**Category:** Ignition\
**Created:** [January 21, 2013, 4:40pm UTC](https://forum.inductiveautomation.com/t/global-script-modules/5708 "2013-01-21T16:40:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![markdobtech](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@markdobtech](https://forum.inductiveautomation.com/u/markdobtech)\
**Post date:** [January 21, 2013, 4:40pm UTC](https://forum.inductiveautomation.com/t/global-script-modules/5708/1 "2013-01-21T16:40:45Z")

</div>

I just want to verify ignition behavior in regard to global script modules. In working with a gateway script that is calling a global script module, I encountered the following error:

File “module:forms”, line 91, in startForm  
INFO | jvm 1 | 2013/01/21 11:30:32 | NameError: global name ‘app’ is not defined

Line 91 is within a global script module calling another global script module “app.utilities.decHms”  
as formDurationHms = app.utilities.decHms.toDecHms(formDuration)

Based on the error, it appears that either it is not possible to call a global script module from within a global script module, or, I do not have the correct syntax.

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [January 21, 2013, 4:55pm UTC](https://forum.inductiveautomation.com/t/global-script-modules/5708/2 "2013-01-21T16:55:45Z")

</div>

You can call app scripts inside of other app scripts. You just have to import app first:`import app
app.utilities.decHms.toDecHms(....)`
