Exemplo n.º 1
0
def plugin_test():
    plugin = Plugin()
    plugin.import_folder('/home/floeuser/floe/dev/plugins')
    
    for name in plugin.list():
        print(name)
    print(plugin.call('func1'))
    plugin.call('func2', 'pos arg 1', 'pos arg 2', kwarg1='kwarg1', kwarg2='kwarg2', kwarg3='kwarg3')
    print(plugin.call('func3'))
    print(plugin.call('func4'))