Improved plugin class naming
This commit is contained in:
parent
4d0c0eda70
commit
916f056844
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user