# Python libraries - Are they Ignition Libraries or other?

**URL:** <https://forum.inductiveautomation.com/t/python-libraries-are-they-ignition-libraries-or-other/19572>\
**Category:** Ignition\
**Created:** [September 6, 2018, 9:50pm UTC](https://forum.inductiveautomation.com/t/python-libraries-are-they-ignition-libraries-or-other/19572 "2018-09-06T21:50:31Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![MikeAllgood](https://avatars.discourse-cdn.com/v4/letter/m/a183cd/32.png) [@MikeAllgood](https://forum.inductiveautomation.com/u/MikeAllgood)\
**Post date:** [September 6, 2018, 9:50pm UTC](https://forum.inductiveautomation.com/t/python-libraries-are-they-ignition-libraries-or-other/19572/1 "2018-09-06T21:50:31Z")

</div>

I’m working with some existing content that our customer wants utilized in a project we are building.  
There is a navigation script file that is used to configure the client on launch.  
The scripts in this file contain some library references I am not familiar with and can’t seem to find any help for online.  
I’m hoping someone here can point me in the right direction to find the relevant documentation.

The two I’m having trouble sourcing info on are noted below.

```auto
from client import actions

```

```auto
from navigation import pages

```

Any one know where I can find documentation on these libraries?

Thanks,  
Mike

---

<div class="post-metadata">

**Author:** ![mrogers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mrogers/32/4110_2.png) [@mrogers](https://forum.inductiveautomation.com/u/mrogers)\
**Post date:** [September 6, 2018, 10:15pm UTC](https://forum.inductiveautomation.com/t/python-libraries-are-they-ignition-libraries-or-other/19572/2 "2018-09-06T22:15:14Z")

</div>

What kind of functions from these package is the script using? I don’t think those are included libraries in Ignition as far as I can tell after some research. Without knowing the details of the situation there, I’m wondering if parts of this project were brought over from another gateway that may have had those two packages installed. Also, if it came from another gateway then perhaps its another Ignition module that added these, try comparing the modules on each gateway.

---

<div class="post-metadata">

**Author:** ![MikeAllgood](https://avatars.discourse-cdn.com/v4/letter/m/a183cd/32.png) [@MikeAllgood](https://forum.inductiveautomation.com/u/MikeAllgood)\
**Post date:** [September 6, 2018, 10:32pm UTC](https://forum.inductiveautomation.com/t/python-libraries-are-they-ignition-libraries-or-other/19572/3 "2018-09-06T22:32:43Z")

</div>

From the actions module of the client library:

```auto
value = actions.launch(retarget=0)

```

From the pages module of the navigation library:

```auto
currentPages = pages.pageSet()
...
currentPages.setPages(mainPages.value, subPages.value)
...
startupPage = currentPages.getStartupPage(key)
...
currentPages.setCurrentPages(startupPage.label, startupPage.path, startupPage.clientTags)
currentPages.writeCurrentClientTags()

```

Where the mainPages and the subPages tags are datasets.

Does that help?  
I’ve searched for the various key words but have come up blank on these.

Thanks!

---

<div class="post-metadata">

**Author:** ![mrogers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mrogers/32/4110_2.png) [@mrogers](https://forum.inductiveautomation.com/u/mrogers)\
**Post date:** [September 6, 2018, 10:41pm UTC](https://forum.inductiveautomation.com/t/python-libraries-are-they-ignition-libraries-or-other/19572/4 "2018-09-06T22:41:33Z")

</div>

That seems like something custom someone made. Any odd modules on the source gateway?

I’m not sure what the “page” stuff is about - sounds like a window, I can’t imagine IA calling it a page instead of a window.

---

<div class="post-metadata">

**Author:** ![MikeAllgood](https://avatars.discourse-cdn.com/v4/letter/m/a183cd/32.png) [@MikeAllgood](https://forum.inductiveautomation.com/u/MikeAllgood)\
**Post date:** [September 6, 2018, 10:56pm UTC](https://forum.inductiveautomation.com/t/python-libraries-are-they-ignition-libraries-or-other/19572/5 "2018-09-06T22:56:07Z")

</div>

Yeah, kind of my thought as well. I can’t find anything in their SDK documentation so I went looking for Python and Jython references. Neither have panned out.  
There aren’t any odd modules on the Gateway.

I’m trying to understand their navigation (it’s pretty convoluted) in order to modify it so their top and left navigation menus (both are custom built using templates, UDT, and other “built in” tags) in order to update the top/left nav menus when operators use in screen navigation.

Thanks for the help!

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [September 6, 2018, 11:04pm UTC](https://forum.inductiveautomation.com/t/python-libraries-are-they-ignition-libraries-or-other/19572/7 "2018-09-06T23:04:55Z")

</div>

Are there files/folders named `client` and `navigation` in the `user-lib/pylib` folder on the gateway, in the install directory?

---

<div class="post-metadata">

**Author:** ![MikeAllgood](https://avatars.discourse-cdn.com/v4/letter/m/a183cd/32.png) [@MikeAllgood](https://forum.inductiveautomation.com/u/MikeAllgood)\
**Post date:** [September 6, 2018, 11:15pm UTC](https://forum.inductiveautomation.com/t/python-libraries-are-they-ignition-libraries-or-other/19572/8 "2018-09-06T23:15:32Z")

</div>

Sorry, but I don’t have access to the actual server, just the Gateway Home & Status tabs, the Designer, and the Client via a VPN. ☹

I may be able to ask someone, but I’m guessing the folks on the customer side likely would have information on any installed libraries. Maybe there is some documentation there. I’ll ask!

Thanks!

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [September 7, 2018, 2:38pm UTC](https://forum.inductiveautomation.com/t/python-libraries-are-they-ignition-libraries-or-other/19572/9 "2018-09-07T14:38:36Z")

</div>

You can check on your local machine - the pylib folder from the gateway is automatically downloaded to your local machine when you launch a client; check the .ignition cache (if Windows, the path will be `%userprofile%\.ignition\cache\<gateway IP address>\C0\pylib`)

---

<div class="post-metadata">

**Author:** ![MikeAllgood](https://avatars.discourse-cdn.com/v4/letter/m/a183cd/32.png) [@MikeAllgood](https://forum.inductiveautomation.com/u/MikeAllgood)\
**Post date:** [September 7, 2018, 2:54pm UTC](https://forum.inductiveautomation.com/t/python-libraries-are-they-ignition-libraries-or-other/19572/10 "2018-09-07T14:54:48Z")

</div>

Hey thanks!  
That’s good to know.  
I have verified that these are customer generated custom libraries and hove gotten some information from them on these.

Thanks for the help!  
Mike

---

<div class="post-metadata">

**Author:** ![lrhyrne](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrhyrne/32/12097_2.png) [@lrhyrne](https://forum.inductiveautomation.com/u/lrhyrne)\
**Post date:** [September 25, 2019, 2:53pm UTC](https://forum.inductiveautomation.com/t/python-libraries-are-they-ignition-libraries-or-other/19572/11 "2019-09-25T14:53:30Z")

</div>

> [@paul-griffith](#):
>
> cache

Can I delete these files? in the ignition/cache folder?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [September 25, 2019, 3:52pm UTC](https://forum.inductiveautomation.com/t/python-libraries-are-they-ignition-libraries-or-other/19572/12 "2019-09-25T15:52:29Z")

</div>

Yes, if you need to, you can delete the entire `.ignition/` cache folder (or files/directories within) and the client will automatically download whatever they require on next launch.
