When using pyplugs in a script, __package__ is not set. Currently this ends up with pyplugs tring to import plugins with a leading dot, for instance import .plugin which is interpreted as a relative import, which is not allowed in this setting.
While it might still be clunky, make sure that it's possible to run pyplugs in scripts.
When using
pyplugs
in a script,__package__
is not set. Currently this ends up withpyplugs
tring to import plugins with a leading dot, for instanceimport .plugin
which is interpreted as a relative import, which is not allowed in this setting.While it might still be clunky, make sure that it's possible to run
pyplugs
in scripts.