← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #680190]: addImagePath working on a Pc and not in another

 

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

RaiMan proposed the following answer:
I think it makes sense, when saying in a script
addImagePath(../some/other/folder)

or any other relative path, that it should be relative to the script
folder's location.

The rule might be:
- if there is a bundlepath (which is the case with scripts)
- then relative paths should be relative to the script folder's location

I will let this idea cook over night.

Thanks for reporting

BTW: instead of
p=getParentPath()+r"\ECUImg"

use
os.path.join(getParentPath(), "ECUImg")

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