← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #168166]: script failing when put in a library

 

Question #168166 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/168166

    Status: Answered => Solved

SQA_75 confirmed that the question is solved:
Ok thanks, I will check these links.
I've made a quick test, which was to move all the files of my first script (now, the library), into the folder of the second script (the main, which call the library). Then, all works perfectly... 
So the problem was the main couldn't find the image files...

I've used a method found in this FAQ, to transform the script into a
library and call it from the main. It looks like :

FunctionLibrary = "C:\\sikuli\\main.sikuli\\" + "test_OMVI.py"
exec open(FunctionLibrary).read()
test_OMVI()

I will try with "import" wich is certainly a better way to do.
Thanks for your answear and help.

I'm now trying to interface Sikuli with a BDD tool like RobotFramework.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.