← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #404525]: save to text file

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
backslashes in strings must be doubled or use raw strings r"..."

with open("C:\\PythonScripts\\test.sikuli\\Log.txt", "a") as myfile:

or
with open(r"C:\PythonScripts\test.sikuli\Log.txt", "a") as myfile:

I am not sure wether the path C:\PythonScripts\test.sikuli must exist.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.