← Back to team overview

sikuli-driver team mailing list archive

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

 

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

RaiMan proposed the following answer:
the folder structure should be like this:

├── myapp.sikuli/
│ ├── myapp.py

  |── helpers.sikuli/
│ ├── helpers.py

 |── images.sikuli/
│ ├── images.py
│ ├── all my image files....

... all .sikuli should be in the same folder (more convenient and
supported by automatics)

>>> myapp.py :

# no path handling needed - automatic

import helpers
import images

# reload is not needed for .sikuli (automatic)
#reload(helpers)
#reload(images)

>>> helpers.py (1st line)
from sikuli import *

... in images.py only needed if any SikuliX features are used, hence not
needed if only images are defined.

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