PDA

View Full Version : Is it possible to launch a script from another directory than script?


Temhil
2008-10-23, 21:06
Hi,

I am trying to do something and I was wondering if XBMC has an option that would allow to launch a script directly form a directory in one of the section video/pictures ?
Any ideas how to do that?
Thanks!

Martomo
2008-10-25, 01:24
This should do the trick:
executebuiltin('XBMC.RunScript(Q:\Scripts\myscript .py)')

Replace 'Q:\Scripts\myscript.py' with the script location.

More information about running a another script from a script;

Built In Scripting on wiki (http://xbmc.org/wiki/?title=Built_In_Scripting#Using_Built-in_Functions_from_python)

List of Built In functions (http://xbmc.org/wiki/?title=List_of_Built_In_Functions) (tells more about XBMC.RunScript)