[RELEASE] Texture Cache Maintenance utility
Hi Milhouse

I'd like to map the TCMU to the red button on my remote.

So far I think i did OK
1. put my python script in C:\Users\xxx\AppData\Roaming\Kodi\userdata\XbmcPruneCache.py
2. Edit my C:\Users\xxx\AppData\Roaming\Kodi\userdata\keymap\remote.xml and add

<Home>
<remote>
<red>RunScript("special://profile/XbmcPruneCache.py")</red>
</remote>
</Home>

XbmcPruneCache.py is calling XbmcPruneCache.bat

The bat file does various things like
- Sending a nice cleaning notification
- Delete some junks like moviename.nfo created during kodi library
- Run TCMU (prune)

Now well. when I run le py by double clicking on it in windows it is completing fine.
when I press my remote red button it starts the script but here is what I can see

http://imgur.com/gNUhwDC

It says something about import error dll. So it looks when launched from Kodi and not externally it cannot handle correcly my python install and/or path or whatever
I think it is because TCMU is not a Kodi addon something about python from Kodi install or the one I installed in windows (2.7 if i recall)
But i am a total python noob (hence my post here) so i will wait for a clever answer
Is there an easy workaround or does it really mean turning TCMU into an addon (which would be beyond my skills)
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 RazorFR - 2016-03-16, 17:13
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
This forum uses Lukasz Tkacz MyBB addons.