New ScreenPanel

This commit is contained in:
2018-01-19 10:56:53 +01:00
commit ae4d621609
580 changed files with 46598 additions and 0 deletions

25
script/launcher.py Executable file
View File

@@ -0,0 +1,25 @@
import sys
import json
script = sys.argv[1]
function = sys.argv[2]
jsonargs = sys.argv[3]
args =json.loads(jsonargs)
i = script.rfind('/')
if i<0:
i = script.rfind('\\')
module = script[i+1:-3]
path = script[:i+1]
sys.path.insert(1,path)
cmd = "from " + module + " import " + function + " as function"
exec cmd
ret = function(*args)
jsonret = json.dumps(ret)
print jsonret