← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #194681]: Use strings to import and run functions from other Sikuli scripts

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Uuups, SCREEN has to be redefined also, sorry ;-)

so complete now:

SCREEN = Screen(1)
dict = globals()
dict['SCREEN'] = SCREEN
dict['SCREEN']._exposeAllMethods(__name__)

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