← Back to team overview

sikuli-driver team mailing list archive

[Question #668124]: How can i go, Please?. Call Script

 

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

Script1

popup("hello, I am script1")
import script2
script2.myPop() # call function myPop in script2


Script2
from sikuli import *
popup("hello, I am script2")
def myPop(): # this defines a function
    popup("hello, I am script2")


Error: [error] script [ Script1 ] stopped with error at line --unknown--
[error] Error caused by: Traceback (most recent call last): File "C:\Testes\Script1.sikuli\Script1.py", line 2, in <module> import script2 File "C:\Users\Silvio Aulik\Desktop\sikulix.jar\Lib\sikuli\SikuliImporter.py", line 45, in load_module File "C:\Users\Silvio Aulik\Desktop\sikulix.jar\Lib\sikuli\SikuliImporter.py", line 27, in _load_module ImportError: script2.sikuli has no script2.py 


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