sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #07196
Re: [Question #179700]: Robot Framework: capture screen and move to a new location
Question #179700 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/179700
Status: Open => Answered
RaiMan proposed the following answer:
-- why getBundlePath() returns None in Robot Framework
the bundle path is only set, when the script is run using either the IDE or "java -jar sikuli-script.jar". This is not the case, when your functions are used in RFW. There it is simply a Jython module import, that does not know anything about images and bundles.
So if you want to be able to test your scripts in Sikuli's IDE and use
them as modules in RFW too, you have to add some code, that provides the
image path, when running in RFW (if not getBundlePath(): # provide image
path).
Depending on the overall structure of your stuff, you may decide to
store all images in one .sikuli, that is imported in your scripts, which
puts them in the image path, so the images will be found automagically.
In this case, you have to take care, that your image filenames follow a
naming convention, that prevents duplicate filenames.
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.