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

    Status: Open => Answered

RaiMan proposed the following answer:
since I cannot see what problems you have with the provided solution:
if you copy/pasted it here from the site, then the spaces are not correct. for 
some reason the spaces needed by Robot are corrupted here, when I copy paste 
the example from the IDE to here.

the relevant change to the versions before is to use 
runScript(ucode(ascript))
if the robot script code contains UTF-8 (I think, I should put that behind the 
curtain, so it is always correct with only runScript(ascript).

using only robot.run() leads to the above mentioned problems, because only the 
jar-contained Lib folder containing the Robot stuff is on sys.path and 
apparently Robot is not able to read plain files from a jar file.
The solution is to let sys.path point to the exported Lib folder in 
SikuliX-AppData (this is done by runScript(robot) internally).

If you want to do this currently you have to write code, that replaces
the existing path entry pointing to the jar, with the one, that points
to the SikulixAppData Lib folder.

I will further enhance SikuliX, so that robot.run() can be used without
any additional actions.

-- 
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     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to