I want to run a function of a module with a variable name for example:
Plugins.SomeUnknownName.function() without knowing their name but Plugins. and .function() stay the same.
I have tried several things like plugin = 'Plugins.' + unknown_plugin_name + '.function()' or
plugin_name = "SomePlugin"
Plugins.plugin_name.function()
But I don't know any further.
Maybe someone knows how to solve that.
Also this is my first stack overflow post, so please correct me if I did something wrong.
getattr(Plugins, plugin_name).function()(?)