← Back to team overview

sikuli-driver team mailing list archive

[Bug 1361687] Re: [1.1.0 Beta4] addImagePath() dont works correctly

 

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

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

** Summary changed:

- [1.1.0 Beta4] addImagePath() dont works correctly
+ [1.1.0 Beta4] addImagePath() doesn't work correctly --- fixed in 1.1.0

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

Title:
  [1.1.0 Beta4] addImagePath() doesn't work correctly --- fixed in 1.1.0

Status in Sikuli:
  Fix Committed

Bug description:
  Windows 7 32-bit, Sikuli 1.1.0 Beta4, java version 1.7.0_67

  Step to repo:
  1. Create script with image e.g: C:\TEST\call_fun.sikuli
  from sikuli import *

  def one(name):
      try:
          find(1.png)
          #do something
      except:
          #do something


  2. Create other script e.g: C:\TEST\FUN\fun_1.sikuli :
  ScriPath = "C:\\TEST\\call_fun.sikuli"
  AddImagePath("C:\\TEST\\call_fun.sikuli")

  import call_fun
  import unittest

  class TestSikulix(unittest.TestCase):
      def setUp(self):
          print("setUp")
      def tearDown(self):
          print("tearDowm")
      
      def test_one(self):
          self.assertEqual(1,(call_fun.one('test_one')))

  
  if __name__=='__main__':
      try: unittest.main()
      except SystemExit: pass


  3.Run script from console

  Expected result:
  -script runs correctly

  Got:
  [error] ImagePath: addImagePath: not valid:

  
  Open the same file in 1.0.1. Its works.

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


References