sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #17238
Re: [Question #225600]: match a list with another no matter of the order
Question #225600 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/225600
Status: Open => Answered
RaiMan proposed the following answer:
supposing the 2 lists have the same length (otherwise you have to check
the length before):
areEqual = True
for img in List1:
if not img in List2:
areEqual = False;
break
print "lists are " + (areEqual ? "equal" : "not equal")
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.