Re: [Sikuli-driver] [Question #191810]: Writing to a file

2012-04-11 Thread pyCoder
Question #191810 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/191810 pyCoder posted a new comment: or prefix string with r raw string http://www.jython.org/docs/library/re.html#raw-string-notation myLog = open(rD:\yyuyuyu\123.txt, w) -- You received this question

[Sikuli-driver] [Question #191810]: Writing to a file

2012-03-27 Thread Eugene
New question #191810 on Sikuli: https://answers.launchpad.net/sikuli/+question/191810 Hi! There's some problem: Here is my simpliest script myLog = open(D:\yyuyuyu\123.txt, w) myLog.write(hello!) myLog.close() Sikuli doesn't throw any error, but the file is allways empty. What can be

Re: [Sikuli-driver] [Question #191810]: Writing to a file

2012-03-27 Thread Eugene
Question #191810 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/191810 Description changed to: Hi! There's some problem: Here is my simpliest script myLog = open(D:\yyuyuyu\123.txt, w) myLog.write(hello!) myLog.close() Sikuli doesn't throw any error, but the file is

Re: [Sikuli-driver] [Question #191810]: Writing to a file

2012-03-27 Thread Roman Podolyan
Question #191810 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/191810 Status: Open = Answered Roman Podolyan proposed the following answer: 1) Check if path is correct 2) Try to double \ chars in your path. myLog = open(C:\\123.txt, w) myLog.write(hello!+\n)