1 # must be fixed for the new plugin interface
3 from Screens.Screen import Screen
4 from Screens.MessageBox import MessageBox
5 from Components.ActionMap import ActionMap
6 from Components.Label import Label
14 dir = os.listdir("/usr/lib/tuxbox/plugins/")
19 params = getPluginParams(x)
20 pluginlist.append((params["name"], params["desc"], "function", "main", x))
24 print "no tuxbox plugins found"
27 def getPicturePaths():
30 dir = os.listdir("/usr/lib/tuxbox/plugins/")
31 for x in dir: list.append("tuxbox.png")
33 print "no tuxbox plugins found"
36 def getPluginParams(file):
39 file = open("/usr/lib/tuxbox/plugins/" + file, "r")
40 for x in file.readlines():
42 params[split[0]] = split[1]
45 print "not tuxbox plugins found"
49 def main(session, args):
50 print "Running plugin " + args[:-4] + ".so with config file", args
51 print getPluginParams(args)