Accessing Plex framework (e.g. Log) from Libraries/Shared

Hi,



I am new to both Plex and Python and am having difficulties using the Plex framework.



From my Code/__init__py file I use some classes from packages (my own) I have placed under Libraries/Shared.

Is it possible to use Plex framework functions in those packages? For example, I am trying to use the Log function, but can’t seem to import it.

I can import Framework… but where is the Log function? Where is everything… :slight_smile:



– Kris

Hehehe… There is also a Log object instead of the Log function…pass that in and voila!

this is what I’ve been doing to get things like Log, Dict, JSON to library code



https://gist.github.com/mikew/5011984



not sure if there is a nicer way

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