sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #16839
[Question #222910]: Running several scripts in sequence can not import the modules in different directories
New question #222910 on Sikuli:
https://answers.launchpad.net/sikuli/+question/222910
Under C:\Automation test, I have 3 scripts, for example, testA.sikuli, testB.sikuli, and testC.sikuli.
Each of them is working fine independently.
I use the following scripts to run them in sequence:
import os
dir = "C:\Automation test"
scripts = ["testA", "testB", "testC"]
for script in scripts:
scriptPath = os.path.join(dir, script+".sikuli")
print(scriptPath)
setBundlePath(scriptPath)
execfile(os.path.join(scriptPath, script+".py"))
However, there is an ImportError: No module named createHtmlReport
The module createHtmlReport.py is under testA.sikuli.
Do you know how to fix the problem?
Also, is there a way to pass parameters to different scripts?
For example, in testA.py there is a variable index_A. How to pass the value of index_A to testB.py or testC.py
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.