sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #28177
Re: [Question #254275]: To fetch data in sikuli from CSV file
Question #254275 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/254275
Status: Open => Answered
RaiMan proposed the following answer:
Everything is available in comment #2
+ some basic Python knowledge.
rows = []
for row in csv.reader(input):
rows.append(row)
now in rows you have your lines split into the values.
for row in rows:
for value in rows:
print value,
print
this should show the content of your csv
row[1][2] is the age of rajeev
BTW: if the structure of the csv is your own decision, this would be
easier to work through:
name, age, marks
anurag, 23, 23
rajeev, 24, 45
bhaskar, 25, 67
rhonda, 28, 76
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.