sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #00119
Re: [Question #139737]: how to import multiple image libraries in sikuli?
Question #139737 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/139737
Status: Open => Answered
RaiMan proposed the following answer:
I just made some tests.
the best you can do is the following:
- make all your imports as if the problem was not there
this will leave the Image Path in the not usable way
- then (taking your example above) do the following:
if not projectImgsLabPath1+"\\imgs.sikuli\\" in getImagePath(): # to avoid double action in IDE
removeImagePath(getImagePath()[0]) # removes the wrong entry, remove it if it makes problems
addImagePath(projectImgsLabPath1+"\\imgs.sikuli")
addImagePath(projectImgsLabPath2+"\\imgs_desktopDirector.sikuli"
got the idea?? the trailing \\ in the if is needed, since the internal
logic adds it with addImagePath()
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.