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

Bug #1361687 reported by ggra on 2014-08-26
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Sikuli
Critical
RaiMan

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.

RaiMan (raimund-hocke) wrote :

thanks, I will check and fix.

Changed in sikuli:
status: New → In Progress
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.0
RaiMan (raimund-hocke) on 2014-08-27
summary: - [1.1.0 Beta4] addImagePatch() dont works correctly
+ [1.1.0 Beta4] addImagePath() dont works correctly
RaiMan (raimund-hocke) on 2016-03-06
Changed in sikuli:
status: In Progress → Fix Committed
importance: High → Critical
summary: - [1.1.0 Beta4] addImagePath() dont works correctly
+ [1.1.0 Beta4] addImagePath() doesn't work correctly --- fixed in 1.1.0
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers