← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #234705]: Why does exit() only work half of the time?

 

Question #234705 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/234705

    Status: Open => Answered

RaiMan proposed the following answer:
might have something to do with the force and back implementation of the
callback function between the Jython and the Java level.

instead of exit() try this

# at beginning of script:
import java.lang.System as JSys

# as exit(1)
SikuliX.cleanUp(0)
JSys.exit(1)

which definitely should stop the JVM.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.