sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #55851
Re: [Question #692801]: When I import other sikulix scripts, I will be prompted with a fail to import error
Question #692801 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/692801
Status: Open => Answered
RaiMan proposed the following answer:
#!/usr/bin/python
# -*- coding: utf-8 -*-
- not needed in main script
If imported scripts contain non-ascii characters, then only
# -*- coding: utf-8 -*-
is needed as first line
BTW:
#!/usr/bin/python
is generally wrong with SikuliX, since SikuliX scripts cannot be run
with (C-)Python (we use Jython)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.