← Back to team overview

sikuli-driver team mailing list archive

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

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
what version of Sikuli?

how do you run the main (consuming) script?

in any case:

utilFunctionsPath = 'MyDir\UtilFunctions' # this must be an absolute path and
utilFunctionsPath = 'MyDir\\UtilFunctions' # backslashes must be doubled or
utilFunctionsPath = r'MyDir\UtilFunctions' # you use the raw string notation

if not utilFunctionsPath in sys.path: sys.path.append(utilFunctionsPath)

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