← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #206597]: Problem with importing "external" modules

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
the directory, that has to be in sys.path, to <import xxx> stored at
some-path/xxx.siklui has to be the path CONTAINING the .sikuli you want
to import.

so it has to be:
        currDir = tests
        if not currDir in sys.path:
            sys.path.append(currDir)

and this can be outside the loop, since it is static for your loop.

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