[request] want to know, whether an image file is on imagepath and get it's absolute filename --- workaround

Bug #1503365 reported by RaiMan on 2015-10-06
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sikuli
Medium
Vincent Yau

Bug Description

***** workaround

workaround see comment #1 of related question

***** intended solution
img = ImagePath.exists("someImage.png")

img is either None/null or the absolute filename

------------------------------------------
a direct usage of
Pattern('a')
return
error] Image: could not be loaded: file:/H:/test.sikuli/a.png
[error] Image: Image not valid, but TextSearch is switched off!

I would like to be able to check the file 'a.png' exist in the Sikuli Image Paths.
How to ?

RaiMan (raimund-hocke) on 2015-10-06
description: updated
Changed in sikuli:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.1
Vincent Yau (vyau6789) on 2015-10-09
Changed in sikuli:
assignee: RaiMan (raimund-hocke) → Vincent Yau (vyau6789)
RaiMan (raimund-hocke) on 2015-10-16
summary: [request] want to know, whether an image file is on imagepath and get
- it's absolute filename
+ it's absolute filename --- workaround
Changed in sikuli:
importance: High → Medium
description: updated
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers