# Jython import \* behavior in custom component script

**URL:** <https://forum.inductiveautomation.com/t/jython-import-behavior-in-custom-component-script/15688>\
**Category:** Ignition\
**Created:** [October 17, 2017, 1:06pm UTC](https://forum.inductiveautomation.com/t/jython-import-behavior-in-custom-component-script/15688 "2017-10-17T13:06:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmisztur2](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmisztur2/32/4243_2.png) [@cmisztur2](https://forum.inductiveautomation.com/u/cmisztur2)\
**Post date:** [October 17, 2017, 1:06pm UTC](https://forum.inductiveautomation.com/t/jython-import-behavior-in-custom-component-script/15688/1 "2017-10-17T13:06:35Z")

</div>

Here is what my project.states package looks like:

![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/8/8bde5a0a2b5ebe046febbc110df7298658359d7c.JPG)

I am able to do this in the Script Console:

![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/1/185ed8e04c51b01648e0a2969e313b82f75c269e.JPG)

But I cannot do the same form a component’s custom method:

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/9/99c3053eb4dc371ee5353ec2f4ccf0c1eab83f03.JPG)

An explicit `from project.states import STAGED` does work.

What gives?
