← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #200342]: How to "Include" common image files and run it from the Sikuli IDE

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
If it is possible for you, to rename your image folder to something like 
myimages.sikuli

and put an empty 
myimages.py

into this folder, then you can use
import myimages

having the folder containing my images.sikuli in sys.path.

DANGER: NEVER SAVE myimages.sikuli in the IDE, because this will delete
all your images, since they are not referenced I'm myimages.py. So best
you never open it at all in the IDE!

If this is not possible for you, you have to use the ImagePath feature as described in:
http://sikuli.org/docx/globals.html#imagesearchpath

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