xbmc.executescript with arg help
#1
Does the built in xbmc.executescript() support passing args to a script ?

eg.
in autoexec.py

xbmc.executescript("q:\\scripts\\myscript\\default.py -argname True")

I've tried allsorts of combinations without success.

Any help appreciated.
BBB
Retired from Add-on dev
Reply
#2
yes it does.

Code:
import xbmc
xbmc.executebuiltin("XBMC.RunScript(Q:\\scripts\\script\\default.py, VALUE)")
see http://xbmc-scripting.googlecode.com/svn...ipts_argv/ for a full example

asg
Reply
#3
Ah. I was just using xbmc.executescript() to call script directly.

great, thanks.
Retired from Add-on dev
Reply

Logout Mark Read Team Forum Stats Members Help
xbmc.executescript with arg help0