I’m trying to add some functionality to Slicer, and I want to make a couple of separate modules which will use the same underlying libraries. It’s not clear to me if there’s a nice way to do this without explicit
I’ve seen Importing custom python module into scripted extension and Python scripted module code organization which seem to imply that code to be imported into a module needs to sit in a sub-folder in the module, but that is not suitable for sharing code between modules; and I’ve seen Specifying dependencies of a custom extension in the .s4ext file - #2 by jamesobutler which seems to imply that modules can depend on other modules to provide importables, but the example module there does not seem to import anything from its named dependencies…
Am I missing anything?
My hope is to be able to include both the separate modules, and their common infrastructure, in a single extension, but that is not a hard requirement.