← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #235073]: [1.0.1] Java: Settings.BundlePath not useable --- use ImageLocator.setBundlePath(path) instead

 

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

RaiMan posted a new comment:
I totally revised the ImageLocator feature (addImagePath), since it made many problems in the past.
The so called BundlePath is only defined for usages in Sikuli scripts and has its own setters and getters there.
Using Settings.BundlePath in Java programs was only a convenience-hack, to tell Sikuli in such Java programs, where to find the images (which usually in Java is the current working dir)

So it is no longer internally granted, when you directly change
Settings.BundlePath.

You might use ImageLocator.setBundlePath(path) instead, which takes
care, that the first entry in the internally managed image path is set
to path and hence becomes the so called BundlePath.

Generally spoken: In Java programs one should use the ImageLocator API
to handle, where image files should be searched.

In IDEs like NetBeans, Eclipse you can see the ImageLocator API (package
org.sikuli.basics) together with the method JavaDocs.

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