← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #256835]: abc.jpg looks like a file but not on disk

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
this works (tested ;-):

    Screen s = new Screen();
    String wdir = System.getProperty("user.dir");
    String bundle = new File(wdir, "images").getAbsolutePath();
    ImageLocator.setBundlePath(bundle);
    System.out.println(s.exists("image.png", 0));

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