port tuxbox plugins plugin to the new plugin interface
[enigma2.git] / lib / python / Plugins / tuxboxplugins / plugin.py
index b700566265e828a09c6243e265fde18cd57b94c3..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
@@ -1,40 +0,0 @@
-from enigma import *
-from Screens.Screen import Screen
-from Screens.MessageBox import MessageBox
-from Components.ActionMap import ActionMap
-from Components.Label import Label
-
-import os
-
-def getPlugins():
-       dir = os.listdir("/usr/lib/tuxbox/plugins/")
-       
-       pluginlist = []
-       for x in dir:
-               try:
-                       if x[-3:] == "cfg":
-                               params = getPluginParams(x)
-                               pluginlist.append((params["name"], params["desc"], "function", "main", x))
-               except:
-                       pass
-       return pluginlist
-
-def getPicturePaths():
-       list = []
-       dir = os.listdir("/usr/lib/tuxbox/plugins/")
-       for x in dir: list.append("tuxbox.png")
-       return list
-
-def getPluginParams(file):
-       params = {}
-       file = open("/usr/lib/tuxbox/plugins/" + file, "r")
-       for x in file.readlines():
-               split = x.split("=")
-               params[split[0]] = split[1]
-       file.close()
-
-       return params
-
-def main(session, args):
-       print "Running plugin " + args[:-4] + ".so with config file", args
-       print getPluginParams(args)
\ No newline at end of file