Learning Python and Substance Painter Plugin Creation

As I begin this project I’m learning(I believe) that I need to import modules from outside Painter into my code in order for it to run in Painter. Even though the library works from VS Code outside of Painter, it doesn’t from within Painter.

Im trying to access the perforce Python library from Painter but Painter doesn’t see it. So my question is how can I import the Perforce(P4Python) library so I can access it from within Painter?

The traditional import method doesn’t seem to work.

I didn’t know Substance Painter, but DuckDuckGo did. Does the tutorial sample plug-in work for your setup?

There are links to 3 tutorials on that page, incl. how to use external modules through an environment variable. Does that work?