Improved plugin class naming

This commit is contained in:
Daniel Dayley 2022-05-16 14:13:02 -06:00
parent 4d0c0eda70
commit 916f056844

View File

@ -15,7 +15,7 @@ import python-tool
##PLUGIN__initialized_plugins = []
##PLUGIN_# Plugin loading code
##PLUGIN_plugin_class = 'python-toolPlugin'.strip('-').capitalize()
##PLUGIN_plugin_class = 'python-tool'.strip('-').capitalize() + 'Plugin'
##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]