I'm curious to know what exact differences there are between the execution environment of a Plex plugin and the standard Python execution environment.
I'm running into an issue where access to a COM library in windows (via the comtypes Python library) is behaving differently inside the plugin environment than when the same code is executed from within Python, or directly executed using the PlexScriptHost.exe. Without getting too detailed, I'm getting a semi-obscure COM error that doesn't make much sense, but only when I run the access code from within a Plex plugin.
I understand that there's some sandboxing that goes on for the Python code that runs in a plugin, but I haven't been able to find any documentation on what exactly that is. Can anyone a) point me to that documentation or b) tell me specifically how the plugin sandbox/execution environment differs from a standard Python execution environment?