sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #38756
Re: [Question #295981]: [1.1.1]Images in RobotFramework library .sikuli folder not found
Question #295981 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/295981
Status: Open => Answered
RaiMan proposed the following answer:
--- the relevant error message from the main script:
[error] Image: could not be loaded: file:/D:/script/robot_CalcDemoEx1.sikuli/1467617880602.png
--- this is the library setup in RFW script:
*** Settings **
Library D:/script/UserLibForSikuliXEx1.sikuli/UserLibForSikuliXEx1.py
UserLibForSikuliXEx1.sikuli contains the missing image, but is not on
the image path!
reason:
only .sikuli scripts, imported by another .sikuli script are automatically put on the image path, so that images can be loaded.
The library UserLibForSikuliXEx1.py is internally imported by
RobotFramework, which does not know anything about SikuliX's image path.
solution:
either put all images in one place and take care in main, that this is on the image path or in this case, in main before running robot add an
import UserLibForSikuliXEx1
which would put this folder to the image path.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.