I am attempting to run a script by pressing a button on my remote but I get an error message when I try.
CPythonInvoker(8): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.
The script, which disables and enables HDMI, works from the command line, and worked when activated the same way in Raspbmc
This message is only a warning and is not your problem. The same warning appears when our Settings addon calls an external python script to install updates.
Silly question, but do you have
#!/usr/bin/python
At the start of your power.py script ? Otherwise the shell won’t know to invoke python as you are not including /usr/bin/python in your Runscript call.
In theory with Shell=True full paths shouldn’t have been necessary as it’s running within a shell that should pull in the default path. But it is a good idea to always use full paths in circumstances like this.