2016-02-02, 13:14
(2016-02-02, 01:46)Milhouse Wrote:Thanks.(2016-02-01, 17:24)lstar337 Wrote: Can I use this: RunScript(script[,args]*) to create a button for this in my kodi home menu?
Like say, Action = RunScript(special://profile/texturecache.py[,c]) ?
Or am I way off base with this?
Should be possible. Note the square brackets denote optionality, so you don't include the [] in your actual command.
I gave it a go, but I get an addon error. Looking in the log it says this:
Code:
10:27:01 T:2640049056 WARNING: CPythonInvoker(49): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.
10:27:01 T:2640049056 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.AttributeError'>
Error Contents: xbmcout instance has no attribute 'isatty'
Traceback (most recent call last):
File "/storage/.kodi/userdata/texturecache.py", line 8492, in <module>
main(sys.argv[1:])
File "/storage/.kodi/userdata/texturecache.py", line 8193, in main
loadConfig(argv)
File "/storage/.kodi/userdata/texturecache.py", line 7703, in loadConfig
gLogger = MyLogger()
File "/storage/.kodi/userdata/texturecache.py", line 897, in __init__
self.ISATTY = sys.stdout.isatty()
AttributeError: xbmcout instance has no attribute 'isatty'
-->End of Python script error report<--
This is really reaching the limit of my understanding.
Here is what I am putting in: