Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Propagate sys.exit(code) up the call stack to the shell
SystemExitException is instantiated and thrown by Base::Interpreter whenever the python interpreter executes a sys.exit(<exitCode>) call. However, in the current implementation, the SystemExitException effectively swallows the <exitCode> hence under this change, SystemExitException has been extended to save the <exitCode> passed to the sys.exit() call when it is instantiated and provides a new getExitCode() accessor method to retrieve the <exitCode> in a try/catch block. MainGui.cpp was change to pass the corresponding <exitCode> to the system exit() call so it is accessible in the shell.
- Loading branch information
Showing
3 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters