sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #15909
Re: [Question #221079]: sending values to a file
Question #221079 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/221079
Status: Open => Answered
RaiMan proposed the following answer:
exactly the same way as in Python (Sikuli talks Python language level
2.5)
since we are in Jython (Java based Python interpreter), the filenames
can generally be specified with forward slashes.
so these are equivalent:
inp = open("D:\\Private\\python\\MU_client\\MU_client_test_report.txt","w") # escaped backslashes
inp = open(r"D:\Private\python\MU_client\MU_client_test_report.txt","w") # raw string
inp = open("D:/Private/python/MU_client/MU_client_test_report.txt","w") # forward slashes (solved on Java level)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.