RunScript() with path to a different script file?
#1
Hi,

In my settings.xml I have something like this:

Code:
<setting id="Location" type="action" action="RunScript($ID,SetLocation)" default=""/>

What I want to do now is call RunScript with a different script to the one defined in addon.xml (ie default.py) which is then referenced by $ID. Is there a way to do this?

Ie I want...

Code:
<setting id="Location" type="action" action="RunScript(/home/elliot/.xbmc/addons/discobus/setup.py,SetLocation)" default=""/>

[*Context: I don't see the need to have to jump into a script that has nothing to do with the function at hand. I want one script to handle settings and one to do the day to day running of the addon *]

Are there any other $ variables available, or can I add another script library (?) to addon.xml which can then somehow magically be refered to in settings.xml?
Reply
#2
You can do the former, you just have to specify the full path.

You should, I think*, use something like 'special://home/addons/...'
Reply
#3
Ah OK. http://wiki.xbmc.org/?title=Special_protocol

And all sub folders are translated to the OS versions too?

I'll experiment in the morning.
Reply

Logout Mark Read Team Forum Stats Members Help
RunScript() with path to a different script file?0