Question #244224 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/244224
Status: Needs information => Answered
RaiMan proposed the following answer:
The only thing, that is done in your def is declaring LOCALLY a dictionary
named details.
So this dictionary is not known outside of def, and hence cannot be referenced
as with t=lib.test_details(option["ip"])
The access has to be done in the def too.
But the def is not needed at all.
in the lib script:
details={
"test1": {
"ip": "10.10",
"string": "TESTING",
},
"test2": {
"ip": "10.20",
"string": "TESTING2",
},
}
in the main script:
t=lib.details("test1)("ip")
... no need to invent the wheel again ;-)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp