[RELEASE] Execute user scripts on specific XBMC actions (play starts/stops...)
#33
(2013-06-13, 03:52)matbor Wrote: Yeah, no python installed as it doesn't work from the cli, but how come all my scripts work from within XBMC then? is this something to do with how your plugin works?

That is because XBMC installs its own python. One solution is to find the python installed by XBMC in your ATV2 machine and change the first line of your scripts to point to that file (without the env command)

Quote:I wonder if changing your code from using;

subprocess.Popen([script_player_starts,self.playing_type()])

to;

xbmc.executebuiltin('XBMC.RunScript([script_player_starts,self.playing_type()])')

might fix it, will have a play tonight.


Might work but that will only accept python scripts though...

Regards,
Reply


Messages In This Thread
Great! - by gnorf - 2013-02-27, 22:50
RE: [RELEASE] Execute user scripts on specific XBMC actions (play starts/stops...) - by pilluli - 2013-06-13, 20:17
[RELEASE] Pilulli Revisited - by KenV99 - 2014-06-28, 18:18
Logout Mark Read Team Forum Stats Members Help
[RELEASE] Execute user scripts on specific XBMC actions (play starts/stops...)4