← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #153455]: Sikuli Running on Hudson

 

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

RaiMan proposed the following answer:
Sorry, 2Fast2Furious ;-) and have no idea, how Hudson works in real
life.

Only to be sure: When talking about modifying system path, I am talking
about Windows System Settings -> Extended Settings  -> Environment
Variables -> User Path.

Can it be, that in this case where it fails, Hudson creates an
environment on it's own and does not use the system path? If so,
somewhere in Hudson there must be a possibility to configure the
environment for this.

Can you check the contents of PATH in this moment?

If you want to do these checks from inside the script using the respective Python functions 
(e.g. import os; print os.environ['PATH']), 
use this command to start your script:

java -cp c:\Sikuli\sikuli-script.jar org.python.util.jython
c:\sikuli\hudsontest.sikuli\hudsontest.py

which starts the Jython interpreter accessing the contained .py file. So
when running your script, no Sikuli initialization (and hence no library
not found errors) takes place, until  later in the script "from
sikuli.Sikuli import *" is processed (needed in this case to access the
Sikuli features).

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