error occurs when importing the files in the same directory
Hi,
I having two files in the same directory. i want to import a file to another. so i have followed your instrunction which is given in the Sikuli documentation .
but one error is occuring when importing a file. The error is
[error] Error message: Traceback (most recent call last):
File "E:\DOCUME~
Function.
File "D:\Test\
click(
NameError: global name 'click' is not defined
my source code in Function.sikuli is
from sikuli.sikuli import*
def test(n):
a=img5
for n in range (0,8):
click("img1")
wait(10)
click("img2")
click("img3')
wait(15)
click("img4")
click("img5")
source code for imported file has
import os
myScriptPath = "D:\\function\
if not myScriptPath in sys.path: sys.path.
import Function
find("133715833
Function.test(str)
please give your suggestion for this
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply:
This question was reopened
- by omsakthi