How to install a Python script on XBMC to automatically run it at startup

I need to install a Python script in an XBMC environment to run automatically. The script interacts with the execution of any video. It works and is being tested.

Now I am looking to find the right way to install the script by the end user. The installation should be able to register a script that will be launched automatically after starting XBMC.

I was able to run the script by automatically following these instructions: in the autoeexec.py file

import os import xbmc xbmc.executescript('special://home/scripts/playeractions.py') 

My script is saved in /playeractions.py scripts .

I am looking to find instructions for proper installation that will install and register my script to run automatically when XBMC starts.

+4
source share
1 answer

This page shows how to run addons using services.

Or refer to the autoexec version above.

http://wiki.xbmc.org/index.php?title=HOW-TO:Automatically_start_addons_using_services

0
source

All Articles