Adding additional python modules to Eventghost?

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
Post Reply
Navi
Posts: 11
Joined: Wed Mar 19, 2014 11:32 pm

Adding additional python modules to Eventghost?

Post by Navi » Wed Mar 19, 2014 11:38 pm

hey everybody -

I'm completely new to Python but I've managed to get really far with just general Googling and poking around Stackoverflow, I've looked up my question and haven't found a proper answer so I thought I'd register and ask it here...

Okay, how do you add a Python module to Eventghost?

See, I want to write some scripts that use this guy's Hulu library:
which in turn requires ANOTHER Python library called Requests:
and i have NO IDEA how to intergrate Requests into Eventghost's python!

How DO you do that?

Thanks!

krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Adding additional python modules to Eventghost?

Post by krambriw » Thu Mar 20, 2014 4:46 am

and i have NO IDEA how to intergrate Requests into Eventghost's python!

How DO you do that?
Funny enough, this is described here, just very close in the same section in a neighbor thread

viewtopic.php?f=10&t=6073#p30258


Best regards, Walter

Navi
Posts: 11
Joined: Wed Mar 19, 2014 11:32 pm

Re: Adding additional python modules to Eventghost?

Post by Navi » Thu Apr 03, 2014 12:20 am

Okay so to add additional python modules to Eventghost, you just put the scripts in
/lib26/site-packages
it seems they CAN'T be in a subdirectory, and the name used as import must be the name of the file (???)

i've gotten several modules (is that even the right term?) to work this way, but this screwy Hulu one isn't too happy.

I'm still looking into it, hopefully I'll figure it out

Pakistan
Posts: 1
Joined: Thu Feb 26, 2015 10:23 am

Re: Adding additional python modules to Eventghost?

Post by Pakistan » Thu Feb 26, 2015 10:23 am

Spam -> deleted.
NAT

Post Reply