← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #674620]: Python module sys in sikuli does not work

 

Question #674620 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/674620

    Status: Open => Answered

RaiMan proposed the following answer:
--- about logging:
https://sikulix-2014.readthedocs.io/en/latest/scripting.html#writing-and-redirecting-log-and-debug-messages

--- to build an absolute path relative to your script:
os.path.join(getBundlepath(), "somename.txt") # in the folder .sikuli
os.path.join(getParentpath(), "somename.txt") # in the folder containing the .sikuli

--- to run other scripts from one main script 
https://sikulix-2014.readthedocs.io/en/latest/scripting.html#running-scripts-and-snippets-from-within-other-scripts-and-run-scripts-one-after-the-other

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.