Closed geraldebberink closed 7 years ago
Found the solution by having yet another file which defines the interface. But be aware, in both the plugin and main file this should be imported in the same way.
import mypackage.api
and do not use in one file p.e.
import api
Mixing those does not work. Oh yeah and use an SingletonPlugin, if you want it to be created right away.
I have an application in which I define some ExtensionPoints. I then want to load Implementations from these points to give functionality. When everything is in one file it works well as soon as I try to get them from a plugin directory it fails. with "name 'ITaskDAQ' is not defined.
Main file:
Plugin file (my.plugin.py):
I am probably making a simple mistake, but I have gone through the documentation a few times and cannot find it.