← Back to team overview

sikuli-driver team mailing list archive

[Question #272070]: What's the best way to run multiple scripts in sequence

 

New question #272070 on Sikuli:
https://answers.launchpad.net/sikuli/+question/272070

I'm new to the whole scene and read about different approaches over the lest 3 days. 
Best one for me and for now looks like this:

dir = "the_path_to_main_directory"
scripts=["script1","script2","script3","script4",..]
scriptPath = os.path.join(dir, "script1"+".sikuli")
setBundlePath(scriptPath)
execfile(os.path.join(scriptPath, "script1"+".py"))
scriptPath = os.path.join(dir, "script2"+".sikuli")
setBundlePath(scriptPath)
execfile(os.path.join(scriptPath, "script2"+".py"))
scriptPath = os.path.join(dir, "script3"+".sikuli")
setBundlePath(scriptPath)
execfile(os.path.join(scriptPath, "script3"+".py"))
scriptPath = os.path.join(dir, "script4"+".sikuli")
setBundlePath(scriptPath)
execfile(os.path.join(scriptPath, "script4"+".py"))

Since there will be a lot of tests where I would have to put 15+ scripts together, it would take to much time to get those tests up and running.

So my question is, what would be the easiest way to run those scripts in a sequence? 

I also tried import, but couldn't get it to work the way that's described already in :
https://answers.launchpad.net/sikuli/+question/267115.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.