File size: 345 Bytes
bcf0302
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)