# \[solved\] How do you use project scripts in new project?

**URL:** <https://forum.inductiveautomation.com/t/solved-how-do-you-use-project-scripts-in-new-project/22340>\
**Category:** Ignition Early Access\
**Created:** [February 5, 2019, 9:14am UTC](https://forum.inductiveautomation.com/t/solved-how-do-you-use-project-scripts-in-new-project/22340 "2019-02-05T09:14:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sanderd17](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sanderd17/32/8735_2.png) [@Sanderd17](https://forum.inductiveautomation.com/u/Sanderd17)\
**Post date:** [February 5, 2019, 9:14am UTC](https://forum.inductiveautomation.com/t/solved-how-do-you-use-project-scripts-in-new-project/22340/1 "2019-02-05T09:14:20Z")

</div>

**EDIT: this was not and issue, I just shouldn’t have suffixed my script with `.py`. A habit from other editors I guess.**

As mentioned [in this post](http://forum.inductiveautomation.com/t/nightly-builds-are-back-project-resource-primer/22304), the new custom scripts are no longer reside under separate `project.*` and `shared.*` namespaces.

Now you can create them directly. But I wonder how you can use them from a button.

I’ve tried importing `myScript`, prefixing it with `project.`, and using it directly like this:

```auto
myScript.myFunction("test")

```

But it always fails to find my function.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/2/2981caf9baebd7ec1e91925741c0175d787b937f.png)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/5/5d5911017163dec319bbbdb344e4c32b96fcb87a.png)

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 5, 2019, 1:36pm UTC](https://forum.inductiveautomation.com/t/solved-how-do-you-use-project-scripts-in-new-project/22340/2 "2019-02-05T13:36:28Z")

</div>

Huh, maybe we should discourage/disallow naming your scripts or modules anything that wouldn’t be a valid identifier (at least in the UI, can’t restrict what happens on disk).
