← Back to team overview

sikuli-driver team mailing list archive

[Question #286494]: TypeError: setBundlePath()

 

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

Hi,
i just trying to run multiple scripts from one Sikuli script. I found some solution on these sites.

here is code: 
import os
dir = "c:\Sikulix\Testy\"
scripts = ["pokus", "pokus2"]
isPassAll = {}

for script in scripts:
    isPass = False
    scriptPath = os.path.join(dir, script+".sikuli")
    setBundlePath(scriptPath)
    execfile(os.path.join(scriptPath, script+".py"))
    isPassAll[script] = isPass
print isPassAll

but when i try to run it. I am getting:
[error] script [ mainScript ] stopped with error in line 9
[error] TypeError ( setBundlePath(): 1st arg can't be coerced to String )
[error] --- Traceback --- error source first line: module ( function ) statement 181: Sikuli ( setBundlePath ) TypeError: setBundlePath(): 1st arg can't be coerced to String
[error] --- Traceback --- end --------------

Can you help me to solve it? 

Peter S.

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