sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #38232
Re: [Question #294140]: re-use image name
Question #294140 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/294140
Status: Open => Answered
RaiMan proposed the following answer:
yep, that is tricky ;-)
supposing you have something like this:
# main script
import firefoxtest
import chrometest
firefoxtest.run() # uses the ff-images
chrometest.run() # uses the ff-images also
the reason behind:
the image path is automatically arranged according to the sequence of
the imports:
imagepath after the imports:
-- main
-- firefoxtest
-- chrometest
since the images are searched on the image path according to "first
wins", images with the same name will always be used from the
firefoxtest.
So the solution is to implement some "rearrange the imagepath" logic
using the features getImagePath(), removeImagePath() and addImagePath()
(see docs)
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.