← Back to team overview

sikuli-driver team mailing list archive

[Question #288406]: Raw string in prefStore not working

 

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

I am using 1.1.0 (2015-10-05_17:07) on Windows 10 64-bit.

This works:
Sikulix.prefStore("log", r"C:\asdf")
print Sikulix.prefLoad("log")

Output:
C:\asdf


But this doesn't:
Sikulix.prefStore("log", r"C:\")
print Sikulix.prefLoad("log")

Output:
[error] script [ Preferences ] stopped with error in line 1 at column 23
[error] SyntaxError ( "mismatched input '\\n' expecting RPAREN", )

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