diff options
Diffstat (limited to 'src/plugin.py')
| -rw-r--r-- | src/plugin.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/plugin.py b/src/plugin.py new file mode 100644 index 0000000..dd0f5cf --- /dev/null +++ b/src/plugin.py @@ -0,0 +1,28 @@ +from Plugins.Plugin import PluginDescriptor +import CurlyTx + +def main(session, **kwargs): + reload(CurlyTx) + try: + session.open(CurlyTx.CurlyTx) + except: + import traceback + traceback.print_exc() + +def menuHook(menuid): + if menuid == "mainmenu": + return [(_("CurlyTx"), main, "curlytx", 1)] + return [ ] + + +def Plugins(**kwargs): + return [ + PluginDescriptor(name = "CurlyTx", + description = "View remote text files", + where = [PluginDescriptor.WHERE_PLUGINMENU], + fnc = main), + PluginDescriptor(name = "CurlyTx", + description = "View remote text files", + where=PluginDescriptor.WHERE_MENU, + fnc = menuHook), + ] |
