[RELEASE] Texture Cache Maintenance utility
(2016-02-02, 01:46)Milhouse Wrote:
(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.
Thanks.

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. Rofl

Here is what I am putting in:
Image
Reply


Messages In This Thread
Crash on Gotham on OS X - by desepticon - 2014-05-29, 17:57
RE: [RELEASE] Texture Cache Maintenance utility - by lstar337 - 2016-02-02, 13:14
Cleaning - by AleisterHH - 2018-05-28, 22:03
RE: Cleaning - by Milhouse - 2018-05-28, 22:16
qax genre not updated - by Just-Me_A-User - 2018-06-12, 22:06
RE: qax genre not updated - by Milhouse - 2018-06-12, 23:40
Logout Mark Read Team Forum Stats Members Help
[RELEASE] Texture Cache Maintenance utility17