Why the Eclipse launch is still running after using "Popup" or "Input"

Asked by Parn Yin

If using Sikuli's "Popup" or "Input" in the code, when run the code in Eclipse, even all the codes have been run, launch process is still there.

[Steps to Reproduce]
1. create an empty PyDev module in Eclipse.
2. Enter this snippet:

from sikuli import *
input("cat")

3. Save and run.
4. Click "OK" or "Cance"" in the displayed dialog box.

[Actual Result]
Launch process is still there.
Need to terminate it manually.

Using this snippet get the same result:

from sikuli import *
popup("cat")

Excuse me, did I set something wrong? Is there a way to fix it?

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Parn Yin
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

use exit() to terminate the script.

if you just run
from sikuli import *

... will the launch process terminate then?

Revision history for this message
Parn Yin (pyin) said :
#2

Using exit() works!
Thank you RaiMan!

-----------

just run the line "from sikuli import *" is ok, the launch process terminate automatically.
Except the "popup" and the "input", using other codes of Sikuli is ok too.
maybe there is a hidden bug, maybe it's just because of my environment.

FYI,
my Eclipse version: Kepler Service Release 1
my PyDev version: 3.0.0.201311051910