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
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
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
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)
4 matches
Mail list logo