← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #210841]: Not able to read from text file when timestamp is used

 

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

RaiMan proposed the following answer:
@j-the-k

always impressed by your solutions ;-)

but in this case, this is easier:

instead of:
until[3:6] = (arr[1]) # hour minute second


use:
until[3:6] = eval("("+ arr[1] +")")

this evaluates the statement containing the number string.

if the file would contain
(18, 50, 50)
(19, 25, 56)

it could be reduced to:
until[3:6] = eval( arr[1] )

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