2018-12-13, 20:17
I enabled logging in the texturecache.cfg, but it doesn't even start logging when using the "RunScript" method! (Running it from the windows 7 command line, however, does create a logfile.)
But maybe I now have got a hint what is going wrong: I put the code from my "test.py" into your "texturecache.py" just to find out why it isn't executed when using the "RunScript" method.
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
import os, sys, platform, re, datetime, time
import socket, base64, hashlib
import threading, random
import errno, codecs
import subprocess
import tempfile
for z in range(0,3):
sys.stdout.write("\a")
time.sleep(3)
Result: no execution
but when "socket" is removed, it looks like this
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
import os, sys, platform, re, datetime, time
import base64, hashlib
import threading, random
import errno, codecs
import subprocess
import tempfile
for z in range(0,3):
sys.stdout.write("\a")
time.sleep(3)
Result: it does work!!!!!!!
So I think the issue is related to the use of "import socket" under "KODI 18 for Windows", thus "texturecache.py" needs some modification to work again with the "RunScript" method.
Could you please have a look at it?
Thank you in advance!
But maybe I now have got a hint what is going wrong: I put the code from my "test.py" into your "texturecache.py" just to find out why it isn't executed when using the "RunScript" method.
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
import os, sys, platform, re, datetime, time
import socket, base64, hashlib
import threading, random
import errno, codecs
import subprocess
import tempfile
for z in range(0,3):
sys.stdout.write("\a")
time.sleep(3)
Result: no execution
but when "socket" is removed, it looks like this
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
import os, sys, platform, re, datetime, time
import base64, hashlib
import threading, random
import errno, codecs
import subprocess
import tempfile
for z in range(0,3):
sys.stdout.write("\a")
time.sleep(3)
Result: it does work!!!!!!!
So I think the issue is related to the use of "import socket" under "KODI 18 for Windows", thus "texturecache.py" needs some modification to work again with the "RunScript" method.
Could you please have a look at it?
Thank you in advance!