← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #263857]: how to read single column from csv file using python in sikuli

 

Question #263857 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/263857

    Status: Open => Answered

RaiMan proposed the following answer:
When creating such more complex solutions, you have to learn some basic
Python and not only rely on snippets, you might get from wherever. There
are good tutorials available in the net.

the function in the mentioned question returns a list (array in other
languages) corresponding to the fields of the addressed row.

theRow =  lineFromCSV(file, num)

now you can access each field value by the index starting with 0

print theRow[4]
would print the 5th field value.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.