getImagePath on Windows

Asked by Karl

Why do image paths from getImagePath start with a forward slash?

Question information

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

this is the result of some trial, to get things even for Windows, Mac and Linux.

What is the problem you have with that?

Revision history for this message
Karl (k-d) said :
#2

os.path.join doesn't view the path as valid. I need to do os.path.abspath to get the path normalized before using it with os.path.join.

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

ok, I put it on the list for the next tests on Windows.

Revision history for this message
Karl (k-d) said :
#4

Thanks RaiMan, that solved my question.