sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #17379
[Question #226209]: Go to the next script
New question #226209 on Sikuli:
https://answers.launchpad.net/sikuli/+question/226209
I am using the following script:
import os
dir = os.path.dirname(getBundlePath()) # our working dir with the scripts
# run some scripts in sequence
for script in ("LoginSoul", "Lancaritem"):
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
but when an error happens in the first script(LoginSoul), it did not run the second script. How do I not to run when there is an error in one of the scripts?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.