From 872fe4da28cf59d9d6b6d4d007314f7cc90bb90d Mon Sep 17 00:00:00 2001 From: Daniel Dayley Date: Tue, 2 Nov 2021 23:25:54 -0600 Subject: [PATCH] DON'T LOOK MA I'M NOT READY YET --- bin/python-tool | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/python-tool b/bin/python-tool index db0feb7..345828d 100644 --- a/bin/python-tool +++ b/bin/python-tool @@ -14,7 +14,7 @@ import python-tool ##PLUGIN__initialized_plugins = [] ##PLUGIN_# Plugin loading code -##PLUGIN_plugin_class = 'python-tool-plugin' +##PLUGIN_plugin_class = 'python-toolPlugin'.strip('-').capitalize() ##PLUGIN_def add_plugin(plugin,reload) : ##PLUGIN_ """Adds a given plugin and instance, reinitializing one if it already exists and such is specified.""" ##PLUGIN_ plugin_name = plugin.__module__.split('.')[-1] @@ -101,6 +101,7 @@ if __name__ == '__main__': ##CONFIG_ except Exception as e : ##CONFIG_ debug("Unable to parse config: " + str(e),0) ##PLUGIN_ # Load plugins -##PLUGIN_ use_plugins(search_plugins(directory='/'.join(os.path.realpath(__file__).split('/')[:-2]) + '/python-tool/' + 'plugins')) +##PLUGIN_ available_plugins = search_plugins(directory='/'.join(os.path.realpath(__file__).split('/')[:-2]) + '/python-tool/' + 'plugins') +##PLUGIN_ use_plugins([x for x in available_plugins.values()]) # Main functions print('Hello World!')