2018-12-13, 06:53
@Milhouse
I tested it directly from the command line in windows 7, and it worked, yeah, but I have no clue why it doesn't work directly in KODI 18 RC2 via the "RunScript" method , since it DID work under KODI v17.6 this way and I didn't change anything regarding Windows 7 since then...
Okay, let's try further simple examples:
RunScript(special://userdata/scripts/shell.py,./texturecache.py,volume mute)
-> nothing happens (in KODI v17.6 it worked this way)
But when I use my own python script "test.py"
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
import os, sys, time
c = int(sys.argv[1])
for z in range(0,c):
sys.stdout.write("\a")
time.sleep(3)
by calling "RunScript(special://userdata/scripts/shell.py,./test.py,6)"
-> it works, I can hear the sound 6 times in total
Any idea?
I tested it directly from the command line in windows 7, and it worked, yeah, but I have no clue why it doesn't work directly in KODI 18 RC2 via the "RunScript" method , since it DID work under KODI v17.6 this way and I didn't change anything regarding Windows 7 since then...
Okay, let's try further simple examples:
RunScript(special://userdata/scripts/shell.py,./texturecache.py,volume mute)
-> nothing happens (in KODI v17.6 it worked this way)
But when I use my own python script "test.py"
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
import os, sys, time
c = int(sys.argv[1])
for z in range(0,c):
sys.stdout.write("\a")
time.sleep(3)
by calling "RunScript(special://userdata/scripts/shell.py,./test.py,6)"
-> it works, I can hear the sound 6 times in total
Any idea?