Invalid (?) path of imported images on Windows (w7)

Asked by Petr Fejfar

Hi all,

I've a problem with image path probably: I'm importing two modules utils.sikuli and commons.sikuli residing in the same folder as main sikuli script. When importing those modules, I'm adding this folder into sys.path:
    sikuliImports = "D:\\proj\\AlCash\\sikuli"
    if not sikuliImports in sys.path: sys.path.append(sikuliImports)

but it seems the images from the imported folders cannot be found. Printing getImagePath() looks like (please note forward slashes):

    D:\proj\AlCash\sikuli/utils.sikuli:D:\proj\AlCash\sikuli/commons.sikuli\

To get around, I has to add those paths manually:

    addImagePath("D:\\proj\\AlCash\\sikuli\\utils.sikuli")
    addImagePath("D:\\proj\\AlCash\\sikuli\\commons.sikuli")

Did I miss anything or is it a bug?

Thx, pf

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

Oh yes, you found the bug and the workaround --- congratulations ;-)

bug 697355

Revision history for this message
RaiMan (raimund-hocke) said :
#2

known bug