[sikuli-java] Updating BundlePath

Asked by Pathiyil

Hi,

I want to include some additional directories to the path that Sikuli searches for images. What is the current way to add those to Settings.BundlePath ? Should these be complete path to those directories or relative path from the current directory ?

Thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

with RC3
org.sikuli.script.ImageLocator.addImagePath(String);

and with 1.0.1 it is
org.sikuli.basics.ImageLocator.addImagePath(String);

String must be a complete absolute path string

// additionally you have
removeImagePath(String)
getImagePath() // returns an array of strings

// sets the first path in the array
setBundlePath(String)

// the same but deletes the rest
resetImagePath(String)

Can you help with this problem?

Provide an answer of your own, or ask Pathiyil for more information if necessary.

To post a message you must log in.