sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #07454
Re: [Question #180960]: can't import modules
Question #180960 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/180960
Jose Pablo Jimenez Velez posted a new comment:
Excellent! thanks for the quick response!
That was the problem, I did rename the file and I was not aware that there
was an internal dependency.
I opened the file in sikuli IDE and did a "Save as" with the new name and
it worked just fine.
This might be worth to have in the docs :P
Thanks again!
On Mon, Dec 5, 2011 at 10:05 AM, RaiMan <
question180960@xxxxxxxxxxxxxxxxxxxxx> wrote:
> Your question #180960 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/180960
>
> Status: Open => Answered
>
> RaiMan proposed the following answer:
> This works on my Mac Lion:
>
> - both scripts.sikuli are in same folder (then no sys.path entry is needed)
> - main.sikuli opened and run in Sikuli-IDE
>
> # main.sikuli
> import sub
> sub.test()
>
> #sub.sikuli
> from sikuli import *
> def test():
> popup("hello from sub")
>
> BTW: sys.path has to contain the parent folder, where the to-be-
> imported.sikuli is located.
>
> You might have a filename problem: the libBrowser.sikuli does not
> contain a libBrowser.py or vice versa, because you renamed the
> xxx.sikuli in the finder !?
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/sikuli/+question/180960/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/sikuli/+question/180960
>
> You received this question notification because you asked the question.
>
--
José Pablo Jiménez V
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.