← Back to team overview

sikuli-driver team mailing list archive

[Question #663374]: Unable to call SikuliX 1.1.2 script by import function

 

New question #663374 on Sikuli:
https://answers.launchpad.net/sikuli/+question/663374

I am using below script to call another SikuliX script but it is not working and giving following error in line 5.


SikuliX Script:
from sikuli import *
myScriptPath = "C:\Users\Sami\Scripts\test.sikuli"
addImportPath(myScriptPath)
import test

SikuliX Error:
[error] script [ Import ] stopped with error in line 5
[error] NameError ( !!WHILE IMPORTING!! name 'find' is not defined )
[error] --- Traceback --- error source first line: module ( function ) statement 1: test ( <module> ) find("1514113260953.png")
[error] --- Traceback --- end --------------

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.