← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #231118]: [1.0] problems importing .sikuli scripts in the same directory

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Supposing this:

some_script.sikuli # importing oxpToolKit
opxToolKit.sikuli # either this or
opxToolKit.py

in the same folder.

then
import oxpToolKit

should work without any extra sys.path handling, since Sikuli's import
automagically finds importable stuff in the same folder that contains
the importing script.sikuli

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