jefferis / fiji-cmtk-gui

Simple GUI frontend for CMTK image registration tools in Fiji/ImageJ
12 stars 4 forks source link

closing CMTK Registration dialog should not quit Fiji #10

Closed jefferis closed 9 years ago

jefferis commented 9 years ago

Seems to be a change in how Fiji responds to python sys.exit

jefferis commented 9 years ago

See http://imagej.1557.x6.nabble.com/how-to-end-a-jython-script-td5009398.html. The recommendation is to avoid sys.exit and return from a main function, but I don't think this will work for me – I need to be able to break out of sub functions as well. So I think I need to put in Exception handling for scripts.