# Shared Library 'New Package' option

**URL:** <https://forum.inductiveautomation.com/t/shared-library-new-package-option/16678>\
**Category:** Ignition\
**Created:** [January 22, 2018, 6:13pm UTC](https://forum.inductiveautomation.com/t/shared-library-new-package-option/16678 "2018-01-22T18:13:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wmcoleman](https://avatars.discourse-cdn.com/v4/letter/w/858c86/32.png) [@wmcoleman](https://forum.inductiveautomation.com/u/wmcoleman)\
**Post date:** [January 22, 2018, 6:13pm UTC](https://forum.inductiveautomation.com/t/shared-library-new-package-option/16678/1 "2018-01-22T18:13:24Z")

</div>

When you right-click on Global/Script Library [shared] the context menu includes a _New Package_ option (v7.9.5). How does this work? There’s not a single mention in the User Manual. I tried creating a package and adding a script file to it, but I can’t figure out the syntax to call a function in the script. _shared.[package name].[module name].myFunc()_ fails. _[package name].[module name] .myFunc()_ fails. _[module name].myFunc()_ fails. Anyone know how this is supposed to work?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 22, 2018, 7:37pm UTC](https://forum.inductiveautomation.com/t/shared-library-new-package-option/16678/2 "2018-01-22T19:37:13Z")

</div>

Omit brackets from package and script names.

---

<div class="post-metadata">

**Author:** ![wmcoleman](https://avatars.discourse-cdn.com/v4/letter/w/858c86/32.png) [@wmcoleman](https://forum.inductiveautomation.com/u/wmcoleman)\
**Post date:** [January 22, 2018, 7:49pm UTC](https://forum.inductiveautomation.com/t/shared-library-new-package-option/16678/3 "2018-01-22T19:49:15Z")

</div>

There are no brackets, I was trying to be generic with the syntax.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 22, 2018, 7:52pm UTC](https://forum.inductiveautomation.com/t/shared-library-new-package-option/16678/4 "2018-01-22T19:52:37Z")

</div>

shared.myPackge.myScript.myFunc() is how it is supposed to work. Something else must be going wrong. Just try to import shared.myPackage.myScript to see what error messages you get.
