How to call a function from other module
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.
-------
Script1.sikuli:
import Script2
from Script2 import function2
popup("hello, I am script1")
Script2.function2()
Output : hello, I am script2, function1
Not meeting 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
Meeting my expectation.
-------
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Rathinavel
- Solved:
- Last query:
- Last reply: