Using standard Python commands within Sikuli.

Asked by Smythe Winsington

Do I understand correctly in that any valid Python code can be used inside Sikuli scripts?

Question information

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

yes - principally.

The truth is, that you can use everything that is implemented by Jython (Python on Java).

e.g. this does not work:
x = a if test else b # produces syntax error

And not every module, that can be imported in Python is available in Sikuli.

Just löook through the bugs and answers - there are many of them asking about the Python possibilities.

Revision history for this message
Smythe Winsington (zrb0529) said :
#2

Thanks RaiMan, that solved my question.