framework icon indicating copy to clipboard operation
framework copied to clipboard

Hook loading does not allow relative importing

Open JeffreyDevloo opened this issue 6 years ago • 2 comments

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

JeffreyDevloo avatar Feb 15 '19 13:02 JeffreyDevloo