# Access perspective theme folder in web dev python endpoint

**URL:** <https://forum.inductiveautomation.com/t/access-perspective-theme-folder-in-web-dev-python-endpoint/44759>\
**Category:** Ignition Early Access\
**Created:** [March 22, 2021, 5:36pm UTC](https://forum.inductiveautomation.com/t/access-perspective-theme-folder-in-web-dev-python-endpoint/44759 "2021-03-22T17:36:24Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [March 22, 2021, 6:58pm UTC](https://forum.inductiveautomation.com/t/access-perspective-theme-folder-in-web-dev-python-endpoint/44759/4 "2021-03-22T18:58:06Z")

</div>

From:

> [@How to get Ignition install directory (OS agnostic)?](http://forum.inductiveautomation.com/t/how-to-get-ignition-install-directory-os-agnostic/40456/3):
>
> Thanks! from com.inductiveautomation.ignition.gateway import IgnitionGateway context = IgnitionGateway.get() projectParentFolder = str(context.systemManager.dataDir.absoluteFile).replace('\\','/') + '/projects/'

```auto
themes = context.systemManager.dataDir.toPath().resolve("modules").resolve("com.inductiveautomation.perspective").resolve("themes")

system.file.readFileAsString(themes.resolve("dark.css").toAbsolutePath())

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/access-perspective-theme-folder-in-web-dev-python-endpoint/44759)._
