sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #12511
Re: [Question #205675]: How to call a function/module in a driver script from another sikuli script?
Question #205675 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/205675
Description changed to:
For eg:
I Have a file with name MyFile.sikuli
from sikuli.Sikuli import *
class NewUserFlow():
def TutorialOne(self):
__________
__________
__________
def TutorialTwo(self):
__________
__________
__________
def TutorialThree(self):
__________
__________
__________
test = NewUserFlow()
test.TutorialOne()
test.TutorialTwo()
test.TutorialThree()
Now I have a driver file MyDriver.Sikuli and I want to call Only
"TutorialTwo" from the MyFile.sikuli file and not the others.
I Tried:
from sikuli.Sikuli import *
import MyFile.sikuli
MyFile.TutorialTwo()
But its executing the entire MyFile.sikuli file, instead of just the
TutorialTwo.
Is there a way to do this? :)
Thanks in Advance!
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.