sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #00117
[Bug 697355] [NEW] cannot import multiple image libraries in sikuli
Public bug reported:
Hi,
Sikuli-X provides the way to import another Sikuli script and image library into the main sikuli script. It only works on 1 image library importing.
What if I want to import multiple image libraries into the same sikuli script?
I've tried to do that, it won't work on the 2nd import, even it didn't
complain anything. It just couldn't find the image and will time out.
I've tried to print out the image search path by getImagePath(), it
looks like this, does it look right to you?
array(java.lang.String,
[u'C:\\GUITest\\GUITest.sikuli\\objectData/imgs.sikuli:C:\\GUITest\\GUITest.sikuli\\projects\\DesktopDirector\\objectData/imgs_desktopDirector.sikuli\\'])
the 2nd imported images will not be recognized by Sikuli. But if I
removed the 1st import, the 2nd import will work fine.
I'm using these codes to import the images from 2 libraries....
projectImgsLabPath1="C:\\GUITest\\GUITest.sikuli\\objectData"
if not projectImgsLabPath1 in sys.path: sys.path.append(projectImgsLabPath1)
from imgs import *
projectImgsLabPath2="C:\\GUITest\\GUITest.sikuli\\projects\\DesktopDirector\\objectData"
if not projectImgsLabPath2 in sys.path: sys.path.append(projectImgsLabPath2)
from imgs_desktopDirector import *
** Affects: sikuli
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/697355
Title:
cannot import multiple image libraries in sikuli
Status in Sikuli:
New
Bug description:
Hi,
Sikuli-X provides the way to import another Sikuli script and image library into the main sikuli script. It only works on 1 image library importing.
What if I want to import multiple image libraries into the same sikuli script?
I've tried to do that, it won't work on the 2nd import, even it didn't complain anything. It just couldn't find the image and will time out.
I've tried to print out the image search path by getImagePath(), it looks like this, does it look right to you?
array(java.lang.String, [u'C:\\GUITest\\GUITest.sikuli\\objectData/imgs.sikuli:C:\\GUITest\\GUITest.sikuli\\projects\\DesktopDirector\\objectData/imgs_desktopDirector.sikuli\\'])
the 2nd imported images will not be recognized by Sikuli. But if I removed the 1st import, the 2nd import will work fine.
I'm using these codes to import the images from 2 libraries....
projectImgsLabPath1="C:\\GUITest\\GUITest.sikuli\\objectData"
if not projectImgsLabPath1 in sys.path: sys.path.append(projectImgsLabPath1)
from imgs import *
projectImgsLabPath2="C:\\GUITest\\GUITest.sikuli\\projects\\DesktopDirector\\objectData"
if not projectImgsLabPath2 in sys.path: sys.path.append(projectImgsLabPath2)
from imgs_desktopDirector import *
Follow ups
-
[Bug 697355] Re: X 1.0rc1 Windows: second import corrupts image search path - workaround
From: RaiMan, 2013-08-14
-
[Bug 697355] Re: X 1.0rc1 Windows: second import corrupts image search path - workaround
From: RaiMan, 2013-02-24
-
[Bug 697355] Re: X 1.0rc1 Windows: second import corrupts image search path - workaround
From: RaiMan, 2013-02-21
-
[Bug 697355] Re: X 1.0rc1 Windows: second import corrupts image search path - workaround
From: RaiMan, 2013-02-21
-
[Bug 697355] Re: X 1.0rc1 Windows: second import corrupts image search path - workaround
From: RaiMan, 2013-02-21
-
[Bug 697355] Re: X 1.0rc1 Windows: second import corrupts image search path - workaround
From: RaiMan, 2011-01-16
-
[Bug 697355] Re: X 1.0rc1 Windows: multiple import corrupts image search path - workaround
From: RaiMan, 2011-01-16
-
[Bug 697355] Re: X 1.0rc1 Windows: multiple import corrupts image search path - workaround
From: RaiMan, 2011-01-16
-
[Bug 697355] Re: X 1.0rc1 Windows: cannot import multiple image libraries in Sikuli X
From: RaiMan, 2011-01-12
-
[Bug 697355] Re: Windows: cannot import multiple image libraries in Sikuli X
From: RaiMan, 2011-01-05
-
[Bug 697355] Re: Windows: cannot import multiple image libraries in Sikuli X
From: Tsung-Hsiang Chang, 2011-01-04
-
[Bug 697355] Re: Windows: cannot import multiple image libraries in Sikuli X
From: RaiMan, 2011-01-04
-
[Bug 697355] Re: cannot import multiple image libraries in Sikuli X
From: RaiMan, 2011-01-04
-
[Bug 697355] [NEW] cannot import multiple image libraries in sikuli
From: joe fu, 2011-01-04
References