sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #13650
Re: [Question #210973]: Sikuli code organization / code reuse
Question #210973 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/210973
j proposed the following answer:
If you don't store your images in the submodules you could get rid of
the .sikuli directories and store everything in a python module
structure like this:
parent/
parent/module1/
parent/module1/__init__.py
parent/module1/submodule1.py
parent/module1/submodule2/__init__.py
Then you only need to add
sys.path.append(path/to/parent)
because python scans the underlying package structure itself.
The problem ist, you then need to explicitly specify your image
locations because sikuli will not search in those subdirectories and you
have to add the "from sikuli import*" to every python file to use the
Sikuli features, but everything else should work.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.