framework
framework copied to clipboard
Hook loading does not allow relative importing
All 'plugin' alike systems within the framework use imp.load and check for decorator metadata to load in the dynamic configurable function. Because imp.load loads a single file, not a module, relative importing is not possible.
I'd recommend loading plugins differently: specifying plugin directories for all types and loading them usingimportlib