← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #236259]: Running only one command from command line

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
this unofficial trick currently works (it is used during final setup
test ;-)

you MUST use the java command

java -cp sikuli-script.jar org.sikuli.basics.SikuliScript -testSetup
jython "some text making up a Python statement or more than one
seperated by ; semi-colon"

Be aware: images must be given with absolute path (the challenge will be
the quoting ;-)

Another possibilty would be, to setup a .sikuli or only a .py on the fly using
echo from sikuli import * >script.py
echo other statements
java -cp sikuli-script.jar org.python.util.jython script.py

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.