Differences between Plugin environment and standard Python

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?

 

Any help is appreciated!

So I've got zero views and zero replies on this post after almost 3 days.  Have I posted in the wrong forum?

So I've got zero views and zero replies on this post after almost 3 days.  Have I posted in the wrong forum?

Correct forum, but no views can't be taken as a prof of nobody has read your origen post.

I read it in my mailbox, but since I've no clue, I didn't respond.

When that's said, try and run your plug-in with elevated rights, since that tends to easy up a bit regarding sandboxing

In your info.plist, put this:

    PlexPluginCodePolicy
    Elevated
 
/Tommy

In your info.plist, put this:

    PlexPluginCodePolicy
    Elevated
 

I am using the Elevated policy.

AFAICT, then you can only hope for some Plex Dev chime's in  :(

/T

AFAICT, then you can only hope for some Plex Dev chime's in  :(

/T

Oh great developers of all things Plex, hear my prayer...  ;)

I'm still very much interested in an answer on this, if anyone privy to the right information could make a contribution.

Thanks!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.