← Back to team overview

sikuli-driver team mailing list archive

[Question #269439]: Importing Custom sikuli module - [error] NameError ( global name 'click' is not defined )

 

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

I have a utility sikuli module that I would like to reuse throughout other sikuli modules

my util file looks like:

from sikuli import * 

def helperMethod1():
    ...

def helperMethod2():
   ...

So it has from sikuli import *  at the beginning.

And where I consume it, it's loaded like:

utilFunctionsPath = 'MyDir\UtilFunctions'
if not utilFunctionsPath in sys.path: sys.path.append(utilFunctionsPath)

import UtilFunctions

I tried also with the reload(), and read other people's posts too, but the problem persists no matter what.

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