[check] Jython scripting: exit() does not work anymore in observe handler function --- workaround
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
In Progress
|
Medium
|
RaiMan |
Bug Description
------- workaround
use
os._exit()
instead of
exit()
caveat: if running in IDE, this will also terminate the IDE. So take care to save your stuff before running.
You might also run the script from commandline (while still editing it in the IDE).
-------
I am using onAppear to catch a specific image on the screen. Once the image is there, I want the script to stop. I've been using exit() command for that. However, once I updated to ver. 1.1.0, exit() command is being omitted. The scripts executes until that command, and then ignores it and proceeds.
How I can stop scipt's execution under hanlder for onAppear?
def __onAppearForTh
self.__
self.__
def __handlerForThe
print "Image found"
exit() # Ignores that line
Changed in sikuli: | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → RaiMan (raimund-hocke) |
milestone: | none → 1.1.1 |
description: | updated |
summary: |
[1.1.0] Jython scripting: exit() does not work anymore in observe - handler function + handler function --- workaround |
Changed in sikuli: | |
milestone: | 1.1.1 → 2.0.0 |
summary: |
- [1.1.0] Jython scripting: exit() does not work anymore in observe + [check] Jython scripting: exit() does not work anymore in observe handler function --- workaround |
Changed in sikuli: | |
milestone: | 2.0.0 → 2.0.1 |