← Back to team overview

sikuli-driver team mailing list archive

[Question #142187]: Invalid (?) path of imported images on Windows (w7)

 

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

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


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