sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #26820
Re: [Question #251118]: How to run a series of scripts to avoid startup splash screen with each script
Question #251118 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/251118
RaiMan proposed the following answer:
@ comment #2:
… then use a user parameter, that selects the scripts to be run:
*** very simple solution: each script corresponds to a number
toRun = sys.argv[1] # contains e.g. 137
if "1" in toRun: import scriptxyz # the script that corresponds to #1
if "2" in toRun: import scriptxyz # the script that corresponds to #2
….
*** if the given sequence has to be obeyed:
toRun = sys.argv[1] # contains e.g. 1,3,7 in this case
for actual in toRun.split(","):
if "1" in actual: import scriptxyz # the script that corresponds to #1
if "2" actual: import scriptxyz # the script that corresponds to #2
*** or you might give a list of script names:
toRun = sys.argv[1] # contains e.g. script1,script2,script3 in this case
for actual in toRun.split(","):
exec("import " + actual)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.