2 from Screens.Screen import Screen
3 from Screens.MessageBox import MessageBox
4 from Components.ActionMap import ActionMap
5 from Components.Label import Label
13 dir = os.listdir("/usr/lib/tuxbox/plugins/")
18 params = getPluginParams(x)
19 pluginlist.append((params["name"], params["desc"], "function", "main", x))
23 print "no tuxbox plugins found"
26 def getPicturePaths():
29 dir = os.listdir("/usr/lib/tuxbox/plugins/")
30 for x in dir: list.append("tuxbox.png")
32 print "no tuxbox plugins found"
35 def getPluginParams(file):
38 file = open("/usr/lib/tuxbox/plugins/" + file, "r")
39 for x in file.readlines():
41 params[split[0]] = split[1]
44 print "not tuxbox plugins found"
48 def main(session, args):
49 print "Running plugin " + args[:-4] + ".so with config file", args
50 print getPluginParams(args)