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

    Status: Open => Answered

RaiMan proposed the following answer:
in Python strings the \ is an escape character and must be doubled if
used as a real character:

with open("C:\\error_log", "a") as f:

an alternative is to use so called raw strings, where every character is
real, but a \ must not be the last character:

with open(r"C:\error_log", "a") as f:

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to