Gracefully Quit Sikuli Script?
Asked by
Stefani
How can I gracefully quit a Sikuli script so that it does not invoke the exception handler? If I get into a a certain situation, there is no point in continuing. How can I tell it to exit?
I've tried:
type("c", KEY_ALT | KEY_SHIFT) -> produces an exception.
exit() -> Gives name error
sys.exit() -> produces exception SystemError
os._exit() -> This kills the whole thing including Sikuli. This goes too far.
When I try these things and run from the IDE, I always get the red line highliting this point in execution with exception / error messages printed in the output. I just want to fully exit the script, quietly.
Is this possible?
Thanks,
Stef
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Tsung-Hsiang Chang
- Solved:
- Last query:
- Last reply:
To post a message you must log in.