2 from Screens.Screen import Screen
3 from Screens.MessageBox import MessageBox
4 from Components.ActionMap import ActionMap
5 from Components.Label import Label
10 dir = os.listdir("/usr/lib/tuxbox/plugins/")
16 params = getPluginParams(x)
17 pluginlist.append((params["name"], params["desc"], "function", "main", x))
22 def getPluginParams(file):
24 file = open("/usr/lib/tuxbox/plugins/" + file, "r")
25 for x in file.readlines():
27 params[split[0]] = split[1]
32 def main(session, args):
33 print "Running plugin " + args[:-4] + ".so with config file", args
34 print getPluginParams(args)