New question #246338 on Sikuli:
https://answers.launchpad.net/sikuli/+question/246338

Hi,

I'm new to sikuli and I'm having this error: [error] NameError ( global name 
'wait' is not defined )
When I run my first file through the ide it does work and this error above 
doesn't occur at all. But when I try to import this file into another one, the 
error occurs. And here is the file where I import:

#### Start
# works on all platforms
import os
# get the directory containing your running .sikuli
myPath = os.path.dirname(getBundlePath())
if not myPath in sys.path: sys.path.append(myPath)
################################################################
# The module which works well when running it alone
import default_template
for browser in default_template.browsers:
    default_template.connection(browser)
#####End

I assume the error is caused when importing, if so, how can I import it right?
Tools: Sikuli IDE 1.0.1 installed through  sikuli-setup.jar.

-- 
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     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to