2014-01-07, 01:34
Does importing everything from a py file mean you have imported everything thats imported in that file too?
I was trying to figure out why this line wasnt playing any TV episodes, when no script error was being reported.
So I looked through the code for some try/exception:pass I may have missed but didnt find anything. Then I noticed that I hadnt imported xbmc. WTF? Surely I should have gotten a script error for that!
My first thought is that maybe the xbmc module gets imported along with everything else in this fille?
tx
I was trying to figure out why this line wasnt playing any TV episodes, when no script error was being reported.
Code:
xbmc.executeJSONRPC('{ "jsonrpc": "2.0", "method": "Player.Open", "params": { "item": { "episodeid": %d }, "options":{ "resume": "true" } }, "id": 1 }' % (epid))
So I looked through the code for some try/exception:pass I may have missed but didnt find anything. Then I noticed that I hadnt imported xbmc. WTF? Surely I should have gotten a script error for that!
My first thought is that maybe the xbmc module gets imported along with everything else in this fille?
Code:
from resources.lazy_lib import *
tx