diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-02-19 23:49:53 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-02-19 23:49:53 +0000 |
| commit | 9d512025add93946694e16984b1d10df9c990717 (patch) | |
| tree | bc110bbef4268c80f64a8b0b2865f0409475e255 /lib/python | |
| parent | 06bcb61d2691eae37724eb82412bccd08af587f6 (diff) | |
| download | enigma2-9d512025add93946694e16984b1d10df9c990717.tar.gz enigma2-9d512025add93946694e16984b1d10df9c990717.zip | |
port tuxbox plugins plugin to the new plugin interface
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Plugins/tuxboxplugins/plugin.py | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/lib/python/Plugins/tuxboxplugins/plugin.py b/lib/python/Plugins/tuxboxplugins/plugin.py index 01d57456..e69de29b 100644 --- a/lib/python/Plugins/tuxboxplugins/plugin.py +++ b/lib/python/Plugins/tuxboxplugins/plugin.py @@ -1,51 +0,0 @@ -# must be fixed for the new plugin interface -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(): - pluginlist = [] - - try: - dir = os.listdir("/usr/lib/tuxbox/plugins/") - - for x in dir: - try: - if x[-3:] == "cfg": - params = getPluginParams(x) - pluginlist.append((params["name"], params["desc"], "function", "main", x)) - except: - pass - except: - print "no tuxbox plugins found" - return pluginlist - -def getPicturePaths(): - list = [] - try: - dir = os.listdir("/usr/lib/tuxbox/plugins/") - for x in dir: list.append("tuxbox.png") - except: - print "no tuxbox plugins found" - return list - -def getPluginParams(file): - params = {} - try: - file = open("/usr/lib/tuxbox/plugins/" + file, "r") - for x in file.readlines(): - split = x.split("=") - params[split[0]] = split[1] - file.close() - except: - print "not tuxbox plugins found" - - 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 |
