sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #28302
Re: [Question #254592]: Using a list of stored captures
Question #254592 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/254592
RaiMan proposed the following answer:
--- if not success: <--------- What does this do? Identifies a None Type?
In Python in condition eval every variable containing None is taken as False and every variable containing a valid object ref is taken as True.
So this is True, when the entry was already found (contains a match)
--- if dd.exists(dd[n]): <-------- this should be ddSuccess[n]?
surely not (contains None ;-)
since we want to look for the existence of the image it must be:
if dd.exists(lCaptures[n]): # sorry ;-)
--- ddSuccess[n](dd.getLastMatch())
LOL - did not see this before either …
ddSuccess[n] = dd.getLastMatch()
conclusion: you passed the test ;-)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.