sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #24396
Re: [Question #244200]: configparser error in Sikuli 1.0.1
Question #244200 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/244200
Status: Open => Answered
RaiMan proposed the following answer:
-- 1. How do I know which library is native or not?
You have to either get the information from the package description or even look inside the package, wether it comes with some dll's.
In doubt, you might simply try to import it and see what happens: If the import runs without errors, then it should usually work.
If it is a rather well known package, asking google using
"Jython" "package-name"
should give you some findings.
-- 2. how to use a Python module in the Jython/Sikuli environent
Python modules usually come with installation/egg support. This stuff is not relevant with Jython (does not work).
You have to find the folder inside the module stuff, that contains the
module's Python code. This is usually named like the module's name and
normally contains the __init__.py (the module initialization code).
Only this folder is needed.
In the Sikuli setup folder (containing the SikuliX jars) make a folder Lib (if it is not yet there).
Simply COPY the identified folder from the Python stuff to this folder Lib (it is on sys.path anyway, as you might check)
an example with the module xlrd is in faq 2208.
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.