sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #22587
Re: [Question #240262]: How to write SIKULI scripts with Eclipse
Question #240262 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/240262
Status: Open => Answered
RaiMan proposed the following answer:
It is like with all the other stuff in Eclipse:
If you want to have support for autocomplete, you have to add your private stuff to the projects path settings.
This might be a bit tedious in your case (many sub .sikuli), so the question is:
did you structure your project in a way that makes sense according to your needs?
answer: no, not really.
using .sikuli as lib modules in Eclipse is not straight forward in your
case, since the module structure does not comply to the Python standards
(that it is possible to import a .sikuli is only a special Sikuli
feature, that uses a hook in the Jython import).
The best approach is, to implement a standard Python module structure:
-- lib folder
__init__.py
lib1.py
lib2.py
....
-- image folder
... contains all images and might be a .sikuli managed with Sikuli's IDE.
Then you have to use the image path features in your scripts, to tell
Sikuli, where the images are found (in case of a .sikuli, an import
would do this for you)
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.