sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #54261
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:
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.
**************** and now the bad news
there is currently a bug in the script run, if the helper.py is changed
and main.py is rerun in the same IDE session (does not matter if with
.sikuli or not, wether with reload or not).
I will give you a working example after a short time.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.