← Back to team overview

sikuli-driver team mailing list archive

[Bug 1335398] Re: [IDE 1.1.0] Sikuli script does not load images for relative image reference like click(../images/myimage.png)

 

.. in filenames are officially not supported generally.

That it works in your case is interesting though. I will check that.

please report complete Sikuli version info (see File -> About) and what
system.

to work around this problem, you might either use the ImagePath features or use a variable having:
iDir = "../images/"

and use 
click(iDir + "image1.png")

to avoid these internal changes of your script code.

** Changed in: sikuli
       Status: New => In Progress

** Changed in: sikuli
       Status: In Progress => Fix Committed

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

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

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

** Summary changed:

- [IDE 1.1.0] Sikuli script does not load images for relative image reference like click(../images/myimage.png)
+ [1.1.0-BetaX] IDE: click(../images/myimage.png) leads to not found images on reload of script

** Summary changed:

- [1.1.0-BetaX] IDE: click(../images/myimage.png) leads to not found images on reload of script
+ [1.1.0-BetaX] IDE: using click(../images/myimage.png) leads to not found images on reload of script

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

Title:
  [1.1.0-BetaX] IDE: using click(../images/myimage.png) leads to not
  found images on reload of script

Status in Sikuli:
  Fix Committed

Bug description:
  I have a folder structure as below

  |-images
     |-image1.png
     |-image2.png

  |-templates
     |-template1.sikuli (only has .py and .html)
     |-template2.sikuli (only has .py and .html)

  Issue #1 : If i refer the image1.png from my template1.sikuli script
  as click("../images/image1.png") then  it works first time but after
  saving the scripts does not work, i get error saying image not found
  in template1.sikuli directory

  Issue #2 : If i make any modification to my template1.sikuli , then
  the image relative reference gets overwritten as click("image1.png")

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


References