← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #162469]: Portable Sikuli Scripts?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
to simulate the situation on another machine, where Sikuli is not
installed, I suggest as an example the following setup:

-- we have a directory
c:\sikuli
where the following is stored (the full path in this example):
sikuli-script.jar ( c:\sikuli\sikuli-script.jar )
the libs directory from the Sikuli installation ( c:\sikuli\libs )

this directory is needed on the target machine.

- and we have a directory:
c:\sikuli-scripts
where we store the test scripts as .sikuli folders
a test script: c:\sikuli-scripts\test.sikuli

- this is the command sequence to run a script in this scenario:
PATH=%PATH%;c:\sikuli\libs;c:\Program Files\Java\jre6\bin
java -jar c:\sikuli\sikuli-script.jar c:\sikuli-scripts\test.sikuli

- comment:
PATH=%PATH%;c:\sikuli\libs;c:\Program Files\Java\jre6\bin
this is only needed, if it is not already in system path using system settings -> extended settings -> environment variables.

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