← Back to team overview

sikuli-driver team mailing list archive

[Question #267998]: Push/Pop and addImagePath

 

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

To avoid name clashes and simplify development all of my screenshots are organized as Project/Module/Window/Name1.png ...

Sometines there can be intersection as in 
Project/Module/Window/Name1.png 
Project/Module2/Window/Name1.png 

therefore I use a pattern everywhere:
A module.py contains a part of the path to add while searching for its images and invokes search function as

findEntity(globalProjectPath + moduleImagePath)
which is in the function used as:
    addImagePath(path)
....
    remove imagePath(path)

repeated everywhere. This does resolve any possible name clashes but this removeImagePath seems excessive. 
I kinda remember OpenGL programming where you could glPushContext/glPopContext.

Can we have stuff like that for imagePath in sikuli? 

   

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