← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #232844]: Can Sikuli search the sub-folders to find screenshots?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Totally agreed.

But since we are scripting/programming with a capable system/framework,
there are other means to make your script independent of its location in
the file system.

If you tell your people "just put your script where you want, this
location will be taken as the place to collect the screenshots", then
you can do the following:

import os
scriptDir = getBundlePath() # this is the path to script.sikuli
screenShotDir = os.path.dirname(d) # this is the folder containing script.sikuli

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.