← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #268074]: Not correctly imported modules

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
SikuliX has a special support for importing other scripts, which
intercepts the Python import and tries to find the given module name as
givenName.sikuli. If this is found in the same directory or somewhere
else on sys.path, it is taken as to be imported.

The consequence:
Avoid to name SikuliX scripts with the same name as Python modules you want to import.

in your case you should rename your  
Balloon.sikuli\Balloon.py

to something else like
BalloonScript.sikuli\BalloonScript.py

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