Help - How to run a python script at the start of another addon
#1
Hello,

I have written a script that I want to have executed at the start of another plugin. I have tried a few things, but so far have failed at getting it to run.

The script runs as expected from the command line.

What it is: VPN Helper
What it does: When run, it checks network connections to see if VPN is connected and if the connected VPN is correct. If it is not connected/correct VPN, it disconnects the VPN and establishes the correct VPN.
Why this program: Well, some of my XBMC plugins require specific VPN connections (IE: Hulu USA and iPlayer UK).

The script will likely only work on a gnome based linux machine (ie: ubuntu).

The script is PYTHON.

Some suggestions about how to have its execution initiated prior to running Hulu and or iPlayer is needed.

v/r
Arick
Reply
#2
The first thing that comes to mind for me, would be to make a plugin that list the add-on's in question. Upon selecting the list item, your script is called then the add-on.

There may be a more seamless way Huh
Reply
#3
I am really trying to figure out what the entry point and where to start on this.

I am not sure how xbmc is constructed to handle this type of thing. I am reading and trying to figure this out. Thanks for the lead.

v/r
Arick
Reply

Logout Mark Read Team Forum Stats Members Help
Help - How to run a python script at the start of another addon0