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

    Status: Open => Answered

RaiMan proposed the following answer:
to activate the SikuliX features in any Jython script, that is not run by the 
SikuliX-IDE, you have to add 
from sikuli import *

near the top of the script (before any other imports).

If you run a script from IDE neither
# -*- coding: utf-8 -*-

nor 
from sikuli import * 

is needed in the main script, but only in scripts, that are imported (if
relevant).

... and the feature to add the sites.txt contained paths to sys.path is
a SikuliX feature.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to