ocarina/src/core/enable.py

24 lines
439 B
Python

# This is a simple test plugin, to make sure everything is working
__author__="bjschuma"
__date__ ="$Jan 20, 2010 7:59:07 PM$"
from bt import plugin
from manager import manager
class Plugin(plugin.Plugin):
def __init__(self):
plugin.Plugin.__init__(self)
self.help = "This plugin is used to reenable other plugins"
def run(self, args=None):
if args == None:
return
for plugin in args:
manager.enablePlugin(plugin)