sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #17368
Re: [Question #226007]: how do i for create one switch test in sikuli?
Question #226007 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/226007
Status: Open => Answered
RaiMan proposed the following answer:
supposing all scripts are in c:\mylib.
then make one script c:\mylib\main.sikuli containing:
import os
dir = os.path.dirname(getBundlePath()) # the dir with the scripts
# run some scripts in sequence
for script in ("LancarItem", "Login"):
scriptsik = script + ".sikuli"
scriptpy = os.path.join(scriptsik, script + ".py")
setBundlePath(os.path.join(dir, scriptsik)) # folder for images
execfile(os.path.join(dir, scriptpy)) # runs the code
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.