sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #37817
Re: [Question #292697]: Using open( ), where to find the output file?
Question #292697 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/292697
RaiMan posted a new comment:
the best way always is, to decide for a folder yourself.
e.g the folder containing the script you are running:
dir = getParentPath()
with open(os.path.join(dir, 'output.txt'), 'w') as f:
here you find some more convenience functions for folder handling:
http://sikulix-2014.readthedocs.io/en/latest/scripting.html#file-and-path-handling-convenience-functions
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.