← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #688984]: IDE: imported helper files are not automatically reimported if changed

 

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

RaiMan proposed the following answer:
So you are not a Python expert.

In this case I heavily recommend to not work with plain .py files, but
with the standard .sikuli folders.

Then you do not have any problems with imports (like the above
mentioned) and the .sikuli folder is the standard place for the images
used in this script.

If you want to organise your images in one place, then this is the recommended way:
- create a script that only contains images
- when capturing a new image, use the imageName = <capture> convenience, which captures and names the image in one step.
- this images.sikuli simply import in your scripts, that need any images and simply use the name like "imageName" - the images will be found auto-magically (reason behind: an imported .sikuli will also be on the ImagePath automatically)
Take care: have a naming convention for your images to avoid name clashes.

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