sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #43258
[Question #651217]: How to call a function from other module
New question #651217 on Sikuli:
https://answers.launchpad.net/sikuli/+question/651217
Hi am new to sikuli. Please give the solution how to solve the below problem:
Am having 2 sikuli scripts.
Expectation: => Script1 and 2 should run individually.(Script2 working fine, but not Script1)
----------------------------------------------------------------
Script1.sikuli:
import Script2
from Script2 import function2
popup("hello, I am script1")
Script2.function2()
Output : hello, I am script2, function1
hello, I am script2, function2
hello, I am script1
Not meeting the my expectation.My Expectation is
hello, I am script1
hello, I am script2, function2
----------------------------------------------------------------
Script2.sikuli:
from sikuli import *
def function1(): #
popup("hello, I am script2, function1")
def function2():
popup("hello, I am script2, function2")
function1()
function2()
Output : hello, I am script2, function1
hello, I am script2, function2
Meeting the my expectation.
---------------------------------------------------------------
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.