Importing user defined Python modules in Sikuli
I want to know how to import user defined modules which the user may write in python into Sikuli. My code is not able to recognize the modules i write and stored up in a <Module>.py file. Also i want to know if such a thing is possible if i use pure Jython instead. I have tried adding the module to the Lib directory path as well which obtained after extracting the sikuli-script.jar file. Is there an alternative to the exec method already outlined in the following link:
https:/
exec open("<Module Path>").read()
<Function_
It would also be of help if some one can help me on how to import modules like PIL Image module in Python. This is reporting that after adding the Module to sys.path that it is not able to import the _imaging.pyd file. How to import pyd files of Python in Sikuli?
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
This question was reopened
Can you help with this problem?
Provide an answer of your own, or ask Rajaraman Swaminathan for more information if necessary.