Skip to content

RFC: BUG: slicer.util.exit should use first-called exit status

Isaiah requested to merge github/fork/ihnorton/fix_util_exit into master

Fixes https://issues.slicer.org/view.php?id=4470

Ref where sys.exit from Python was required to correctly return status: https://github.com/pnlbwh/ukftractography/commit/bcd856906d1dbd5eeee608937e62aa3f156c0463

Explanation: QApplication::exit() terminates the event loop and then returns to caller -- so the given PythonQt eval runs to completion and multiple calls in a single block/file will only honor the last-called exit status.

Merge request reports

Loading