← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #270616]: How to clear the loaded images in sikuli

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
the problem in your case is the ImagePath.

each ImagePath.add() adds the path to the end of the list.

so the images are always found in the path added first.

In your case the easiest solution is to use
ImagePath.setBundlePath(Constants.IMG_DIR + browser);

instead of ImagePath.add()

because ImagePath.setBundlePath() always overwrites the first entry in
the image path list.

BTW: the concept you have chosen is exactly the one that should be used.
In version 2 I will support this even better with an ImageGroup concept
based on folder structures and option files.

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