Import External Python classes to your module script

Hi, I have created a scripted Slicer module, within my logic class I am calling a separate python file/class. However, when loading the extension Slicer tries to add the separate file as a module, but i don’t want to have it as an extra module. If any one could assist that would be great.

All the .py files in a folder that is listed among “additional module paths” are expected to be Slicer modules. You can put all additional .py files in regular Python modules within the Slicer module folder as described here.

1 Like

Ahh great, thanks for the help!