2011-03-01, 01:13
lophie Wrote:so if we downloaded the latest how would we implements this?
Here is what I have (XBMC 10.0 "Dharma") on Ubuntu: /home/user/.xbmc/userdata/autoexec.py
Code:
## auto execute scripts when xbmc starts
## note:- use only one script at a time which asks for user input!
import os, xbmc
# create playlists from iTunes playlist file
print "running autoexec.py"
xbmc.executescript('special://home/scripts/myscript.py')
print "finished autoexec.py"
and myscript.py is located in /home/user/.xbmc/scripts
Hope that helps.
V.