I was wondering how I can provide an API for my Python program to enable others to extend it with plugins.
I thought about something like from myProgram.plugins import aClassToExtendByOthers, registerThatClass
.
But I have no idea how to provide this.
I could use an exec statement within my loadPlugins
function for every plugin in the plugins-folder, but this would not enable importing stuff I would like to
provide for people to write those plugins.