sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #01431
Re: [Question #146308]: import .sikuli
Question #146308 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/146308
Status: Open => Answered
RaiMan proposed the following answer:
Your "other Sikuli script" produces syntax errors when being imported.
I guess you have the required "from sikuli.Sikuli import * " in the
first line of your other script.
There seem to be some "invalid" characters in mountPanel.py. Have you
checked this script in the IDE? (Press "Run", even if it does nothing)
If this does not show anything, try this on commandline (all on one
line):
java -cp
/home/jantogni/Documentos/automatic_test/sikuli/Sikuli-X-1.0rc2-linux
/Sikuli-IDE/sikuli-script.jar org.python.util.jython
/home/jantogni/Test/sikuli/mountPanel.sikuli/mountPanel.py
this gives mountPanel.py directly to the Jython interpreter and
hopefully shows up with the problem.
If the "bad" characters are the problem, either delete them or try the recommendation behind the above link:
put this on first line of mountPanel.py
# -*- coding: utf-8 -*-
You may check the encoding of mountPanel.py with some capable editor on
your linux.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.