sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #35077
Re: [Question #272260]: name of image passed to function
Question #272260 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272260
Status: Open => Answered
RaiMan proposed the following answer:
rather easy to solve:
# image is either string or Pattern
imageName = image
if isinstance(image, Pattern):
imageName = image.getFilename()
print "[error] image not found %s" % (imageName)"
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.