sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #04335
Re: [Question #166807]: problem writing results to a file
Question #166807 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/166807
Status: Open => Answered
RaiMan proposed the following answer:
Uuuups, you are right - might have dreamed on that.
On C: it seems that even the root directory is magically protected.
Just create a folder before running the script and it is possible to write there.
Tip: use raw string r"some-filename-containing\" and you do not need
double backslashes.
One more thing:
in your question you wrote
fp.closed
This returns True ore False based upon open state of the stream fp.
If you want to close the file (which is necessary when running in IDE, because otherwise it would not be accessible outside) use
fp.close()
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.