← Back to team overview

sikuli-driver team mailing list archive

[Bug 1555354] [NEW] Raw string in prefStore not working

 

Public bug reported:

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", )

** Affects: sikuli
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1555354

Title:
  Raw string in prefStore not working

Status in Sikuli:
  New

Bug description:
  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", )

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1555354/+subscriptions


Follow ups