sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #07891
Re: [Question #146640]: import some-script.sikuli: needs from sikuli import * in some-script.sikuli
Question #146640 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/146640
RaiMan posted a new comment:
@ Jason
Since * is a placeholder meaning all names in the module, there should be a blank before it.
If you only want to import one name from a module, you have to write
from sikuli import Region
removing the blank would give a syntax error
Interestingly
from sikuli import*
is accepted by the Jython syntax checker too, but I am not sure wether it does the same as
from sikuli import *
So it might be a Jython bug.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.