sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #36412
Re: [Question #280903]: [1.1.0] java.lang.IllegalArgumentException: Cannot create PyString with non-byte value
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.