If the image placed inside a folder has numeric file name, its not taking it as valid file name

Bug #853744 reported by Dude
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Fix Released
Critical
RaiMan

Bug Description

hi,
images=("C:\images\1.png","C:\images\2.png")
icon = ["Setting","Schedule","Vacation","Weather"]
for img in images:

    if exists(img,0): print "exists"
    else: print "not found"

For this piece of code, its not finding the match even if it available on the screen.
it printing "not found"
and am getting a error message, as following.
[error] C:\images.png looks like a file, but can't be found on the disk. Assume it's text.

But when change that filename as "icon1.png" and "icon2.png", it works fine.

Tags: filenames
RaiMan (raimund-hocke)
Changed in sikuli:
status: New → In Progress
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → x1.0
RaiMan (raimund-hocke)
tags: added: filenames
RaiMan (raimund-hocke)
Changed in sikuli:
importance: Undecided → High
RaiMan (raimund-hocke)
Changed in sikuli:
importance: High → Critical
RaiMan (raimund-hocke)
Changed in sikuli:
status: In Progress → Fix Committed
RaiMan (raimund-hocke)
Changed in sikuli:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.