sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #41337
[Question #446246]: sikuli import function doesn't work
New question #446246 on Sikuli:
https://answers.launchpad.net/sikuli/+question/446246
I have two scripts in the same folder.
#content of script2
from sikuli import *
def mypopup():
popup("hello, I am script2")
#content of script1
import script2
script2.mypopup()
but after run script1, I got a error:
[error] script [ script1 ] stopped with error in line 2
[error] NameError ( global name 'popup' is not defined )
[error] --- Traceback --- error source first line: module ( function ) statement 3: script2 ( mypopup ) def mypopup():
[error] --- Traceback --- end --------------
Is there any problem in the script?How can I solve this issue?
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.