Accessing logic() of own ScriptedLoadableModule

I’m trying to access a method in the logic class of a ScriptedLoadableModule I created and loaded into slicer.
The custom module is listed in slicer.modules, but in slicer.modules.CUSTOMMODULE.logic() I can’t access the specific methods of the module.

Is there a way to solve this?
Thanks a lot, Sebastian

Hi Sebastien -

You can do something like this:

>>> import BitmapGenerator
>>> l = BitmapGenerator.BitmapGeneratorLogic()
>>> l.generate()

FYI slicer.modules./module/.logic() is a lower level internal module that hooks your scripted code into the rest of Slicer.

-Steve