Run Python Script from binary plugin written in C++
#1
I will call a python script from an binary plugin written in cpp.
As i now i can call a script using
CBuiltins* t=new CBuiltins();
t->Execute("XBMC.RunScript(test.py);")
or
CBuiltins::GetInstance().Execute("RunScript(test.py)");
But i am not able to compile it.

Is this the right option to call a python script from a binary plugin?
If so how can i compile the binary plugin with cbuiltins?

Thanks for any help
Reply
#2
There is an example of this in the pvr section, called pvr.python I believe. However I only managed to compile it for Linux (Ubuntu), when I tried to cross compile for Android the compilation failed as it could not find the python libraries required.

I therefore abandoned it.

Best of luck, couldn’t get them to play that nicely.
Reply
#3
(2020-03-26, 03:02)el_gonz87 Wrote: There is an example of this in the pvr section, called pvr.python I believe. However I only managed to compile it for Linux (Ubuntu), when I tried to cross compile for Android the compilation failed as it could not find the python libraries required.

I therefore abandoned it.

Best of luck, couldn’t get them to play that nicely.

thanks a lot that helps me.
Reply

Logout Mark Read Team Forum Stats Members Help
Run Python Script from binary plugin written in C++0