import functionality

Asked by kishore

I wrote the function and imported this function into the script its working fine if re-compile function module.
If i close and reopen sikuli IDE trying to execute main script its showing the following error

 import Global
ImportError: No module named Global

if again recompile function module its work fine.

Why i need to recompile each time( if am closing and reopening the sikuli ide)?

please let me know the solution

Regards,
Kishore

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

look at the docs, there you find the solution.

Revision history for this message
kishore (kishore-thotapally) said :
#2

Searched doc , but i didn't get any info. If you knows could you please let me know

Regards,
Kishore

Revision history for this message
RaiMan (raimund-hocke) said :
#3

-> http://sikuli.org/docx/globals.html#importing-other-sikuli-scripts-reuse-code-and-images

-> Some comments for readers not familiar with Python import

Can you help with this problem?

Provide an answer of your own, or ask kishore for more information if necessary.

To post a message you must log in.