← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #688075]: ImagePath: find: not there when importing unittest TestCase into main script

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
yes, the solution most probably is to use the ImagePath feature.
Might even be, that an intellgent use of setBundlePath() is sufficient.

If you are using SikuliX 2.x, then you might try to work generally with
plain Python files in a folder structure, that is directly compatible
with a Python module structure.

First do Ide -> save dialog -> Files of type: as File.
Captured Images will now be stored in the same folder as the .py resides.
all other .py files now share all images in that folder.

IMO in your situation working with Python specific constructs (classes)
and features (unittest), not working with .sikuli but with plain .py
seems to be more appropriate.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.