sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #05459
Re: [Question #171616]: How to append common string into an array
Question #171616 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/171616
Status: Open => Answered
RaiMan proposed the following answer:
Sorry, my fault: raw strings cannot contain a single backslash at the
end of the string.
So I finally recommend the following for your path handling problem,
which avoids the backslash problem.
import os
imgpath = r"C:\images"
menuicon = os.path.join(imgpath, images[0])
or in a loop
for img in images:
print os.path.join(imgpath, img)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.