sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #48514
Re: [Question #673806]: NameError ( name "logout" is not defined) - strange?
Question #673806 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/673806
Status: Open => Answered
masuo proposed the following answer:
Function logout() should be defined before logout() is called.
Your codes is similar to code1.
Change code1 to like code2 or code3, it will work.
[code1]
logout()
def logout():
print "logout"
[code2]
def logout():
print "logout"
logout()
[code3]
def main():
logout()
def logout():
print "logout"
main()
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.