← Back to team overview

sikuli-driver team mailing list archive

[Question #140267]: writing a log

 

New question #140267 on Sikuli:
https://answers.launchpad.net/sikuli/+question/140267

i'm trying to write into txt file my actions but it fail
exm.
if exists(img.png):
   dir = "c:\\...."
   logfile = file(dir + "txt.txt", "w")
   logfile.write("ok")
   logfile.close

if exists(img2.png):
   dir = "c:\\...."
   logfile = file(dir + "txt.txt", "w")
   logfile.write("ok2")
   logfile.close

it always writes me the same ok and not checking all pictures.png


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