← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #233161]: Click in a function

 

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

RaiMan posted a new comment:
@obiwan-92
Thanks for your valuable contributions.

Only to clarify:
In any Jython module (imported Sikuli scripts in the end are Python/Jython modules), where you want to use Sikuli features you must include:

from sikuli import *

before using any Sikuli features.

The reason is, that the Sikuli features rely on the existence of some globally available names, that are setup with this import. (BTW: in a main script, this is executed internally during setup of the Jython run).
Since each module has its own global namespace, you need this import as any other module imports.

So that you do not need to use "from sikuli import *" in normal or main
scripts, simply is a convenience feature.

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