Question #177376 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/177376
Status: Open => Answered
RaiMan proposed the following answer:
-- i have to write results in a file
myLog = file("path-to-log-file.txt", "w") # opens file and empties it
later in script instead of print:
write("some text"+"\n")
to write the next line to your log file.
-- I want to create a result file where I already specify the condition
I do not really understand your intention.
--- Also can I write results in excel
have a look at xlrd (http://pypi.python.org/pypi/xlrd) which can be imported
and used in Sikuli scripts.
Download the zip version and copy the contained directory xlrd somewhere (no
need to do a Python install!).
In your script:
dir_xlrd = "path to the directory containing the folder xlrd"
if not dir_xlrd in sys.path: sys.path.append(dir_xlrd)
from xlrd import *
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp