sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #18809
Re: [Question #231053]: 'KEY_WIN' is not defined error when importing from module
Question #231053 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/231053
Status: Open => Answered
RaiMan proposed the following answer:
as mentioned here:
http://doc.sikuli.org/globals.html#importing-other-sikuli-scripts-reuse-code-and-images
in section:
The prerequisites:
you need in the subs:
your imported script must contain (recommendation: as first line) the following statement: from sikuli import * (this is necessary for the Python environment to know the Sikuli classes, methods, functions and global names)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.