← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #258525]: getBundlePath() in Windows returns different slash as os.sep

 

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

RaiMan proposed the following answer:
... and once more

In your case simply use:

addImagePath(os.path.join("images", "login")

since relative paths are assumed to be in the working folder, which in your case is
D:/development/workspace/AutomationFramework

this should add

D:/development/workspace/AutomationFramework/images/login

to the image path .

Do not care about mixed / and \ - internally this will all be converted
to / - as long as you use the os.path functions allowing you to just do
not care about path separators.

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