Dear Andras,
Apologises for not having replied to this before. Thank you very much for the answer. It solved my issue. Instead of using the directories, I used the Files directly.
#create input selector for Files
self.inputFileSelector_myIS = ctk.ctkPathLineEdit()
self.inputFileSelector_myIS = ctk.ctkPathLineEdit.Files
#And then was able to get the path (directory+name) on the function with:
path = self.inputFileSelector_myIS.currentPath
#And open it with:
my_file = open(path)
Only one additional question. I have noticed that there’s a default value for the file that is always displayed when I run Slicer. That default value has not been defined in the code, yet it is always appearing and can be confusing. Is there a way to leave the space blank?
Thank you very much and kind regards,
Virginia