BF: Recurse into packages when loading builtin plugins
As of !385 (merged) FSLeyes only loads plugin classes from the module they are defined within. This is to prevent a plugin class from being loaded more than once, if it has been imported into another module to be used as a base class.
Unfortunately some built-in plugins (e.g. the AtlasPanel
) are defined in sub-modules which were not being loaded when the fsleyes.plugins
system was being initialised. This has been fixed in this MR, which recursively loads all sub-modules within the fsleyes.plugins
package.