sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #05152
Re: [Question #170365]: Name Error using Java classes in imported script --- workaround
Question #170365 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/170365
Status: Answered => Solved
Benny Phanichkul confirmed that the question is solved:
Thanks RaiMan,
Your direct import solution worked for me. However, I had to explicitly
call out the packages I wanted to import (import * did not work even
after restarting the IDE), so my imports in testUtility module (direct
import method) became:
from sikuli.Sikuli import * # needed only if Sikuli features are used
from java.awt import Toolkit
from java.awt import Rectangle
from java.awt import Robot
from javax.imageio import ImageIO
import os
any idea why import * does not work? could this be another bug?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.