← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #243869]: How to run multiple scripts at a time

 

Question #243869 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/243869

RaiMan proposed the following answer:
according to the latest Python "rules", using import x1, x2, x3, x4, … is allowed, but should not be used and each import should be on one line
import x1
import x2
import x3
…

or a gimmick ;-)
toImport = ("x1", "x2", "x3", "x4")
for m in toImport: exec("import %s"%(m))

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.