← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #668317]: pass in newimagepath on the command line

 

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

    Status: Open => Solved

Marc Summers confirmed that the question is solved:
OK, I solved it myself, here is what I did.

In the invoking Batch Script, I did this:

runsikulix.cmd -r %1 -f "%USERPROFILE%\Desktop.sikuli\logs\%1.log" -d 2
--args pictures_1920_1200

In the sikuli script I did this:

newimagepath = os.path.join(os.environ.get('USERPROFILE'),'Desktop.sikuli')
newimagepath = os.path.join(newimagepath,sys.argv[1])
addImagePath(newimagepath)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.