I am using Slicer 4.11.0 on a Windows 10 computer and developing a Python scripted module.
I want to import a class (TripleMRNet from TripleMRNet.py) from my scripted module, so that I can use it in the module. This TripleMRNet.py is in the same directory as the scripted module.
I have tried to import the class directly in the Python Console and it runs well:
However, when I tried to use it in my scripted module I get the following error:
AttributeError: Can’t get attribute ‘TripleMRNet’ on <module ‘main’ (built-in)>
Any help is appreciated.
Thanks in advance