how to call python script in SikuliX and viceversa?
Hi RaiMan,
I have defined one function in python script.
Function.py is the python script file name.
def printme( str ):
print (str)
return
I have call this printme(str) function in SikuliX IDE as follows:
import sys
mySikuliPath = "C:\Users\
if not mySikuliPath in sys.path: sys.path.
import Function
printme ("I am first call to user defined function")
I have kept Function.py file in same SikuliX IDE folder where my SikuliX script is there.
When I am trying to execute Sikulix Script I am getting error as follows:
[error] script [ temp ] stopped with error in line 5
[error] NameError ( name 'printme' is not defined )
Please help me on this and let me know if you have sample code or any document link avialable.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask vinod dangare for more information if necessary.