Spaces:
Runtime error
Runtime error
class PluginManager: | |
def __init__(self): | |
self.plugins = [] | |
def add_plugin(self, plugin): | |
self.plugins.append(plugin) | |
def remove_plugin(self, plugin): | |
self.plugins.remove(plugin) | |
def execute_plugins(self, *args, **kwargs): | |
for plugin in self.plugins: | |
plugin.execute(*args, **kwargs) | |