← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #254991]: ConfigParser Error in Sikuli

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
I just checked and found, that you get this error, if the given file
cannot be accessed (does not exist e.g.).

If the file exists, it works as expected.

this might be the problem (a \ escape missing):
        data.read('C:\\Automation\\testdata\testdata.txt')
either use
        data.read(r'C:\Automation\testdata\testdata.txt')
or
        data.read('C:\\Automation\\testdata\\testdata.txt')

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.