sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #20678
[Question #235236]: how to read each row of values declared in a function(with array of values) in another script
New question #235236 on Sikuli:
https://answers.launchpad.net/sikuli/+question/235236
Hi Raiman,
I am trying to call a function with array of values in another script. But it is not recognising the function
For example:
def AO_array(T):
T = [["A4", "AO-001"],
["A4", "AO-002"]]
In the main script we are calling function AO_array so that it should read first row and pass the values to the parameters and so on.
l=len(AO_array(T))
count = 0
while (count<=(l-1)):
print T[count]
testcase=T[count]
testfile=testcase[0]
output=testcase[1]
When running with the above code we are getting "module object has no attribute" error.
Can you please let us know where we are wrong.
Looking forward for the reply.
Thanks
Kavitha
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.