← Back to team overview

sikuli-driver team mailing list archive

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

 

Public bug reported:

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

img is either None/null or the absolute filename

current workaround see comment #1 of related question

------------------------------------------
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 ?

** Affects: sikuli
     Importance: High
     Assignee: RaiMan (raimund-hocke)
         Status: Fix Committed

** Description changed:

+ ***** intended solution
+ img = ImagePath.exists("someImage.png")
+ 
+ img is either None/null or the absolute filename
+ 
+ current workaround see comment #1 of related question
+ 
+ ------------------------------------------
  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 ?

** Changed in: sikuli
       Status: New => Fix Committed

** Changed in: sikuli
   Importance: Undecided => High

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
    Milestone: None => 1.1.1

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1503365

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

Status in Sikuli:
  Fix Committed

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

  img is either None/null or the absolute filename

  current workaround see comment #1 of related question

  ------------------------------------------
  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 ?

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1503365/+subscriptions


Follow ups