When and where Sikuli.py file is being run by Sikulix

Asked by Kinga Wierchomska on 2020-08-24

I am trying to find where and when file named Sikuli.py in Lib/sikuli directory in SikuliXAPI is being run. Thank u in advance.

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
2020-08-25
Last query:
2020-08-25
Last reply:
2020-08-24
Best RaiMan (raimund-hocke) said : #1

Ok, you are digging around ;-)
... just on the way to answer your other question.

Sikuli.py is executed every time, when an

from sikuli import *

is issued

This is done internally in the IDE for main scripts automatically (run is triggered in the IDE via run button), before running the script.
Other scripts, that are imported at runtime and use SikuliX features, must have a
from sikuli import *
usually at the top of the script.

... and now wait for my answer on your other question.

Thanks RaiMan, that solved my question.