ide strips Pattern() from images

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

Bug Description

at the start of one of my scripts stick some image patterns i use in several places in global variables:

var = Pattern("image.png")

I need the Pattern(), because I throw in .similar() in the find calls to get different tolerances.

When this is saved in the IDE, Pattern() is stripped and the code only has:

var = "image.png"

which causes exceptions next time I open sikuli and try to run (str does not have .similar())

Tags: ide
RaiMan (raimund-hocke)
Changed in sikuli:
status: New → Fix Committed
milestone: none → x1.0
assignee: nobody → RaiMan (raimund-hocke)
RaiMan (raimund-hocke)
tags: added: ide
RaiMan (raimund-hocke)
Changed in sikuli:
importance: Undecided → Critical
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.