← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #289543]: Combine Images Side by Side

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
This is wrong and useless - just purge it
    cmd = "PATH=/opt/local/sbin:$PATH"+"\n"
    cmd = cmd + "PATH=/usr/bin:$PATH"+"\n"
    cmd = cmd + "PATH=/usr/sbin:$PATH"+"\n"
    cmd = cmd + "PATH=:/bin:$PATH"+"\n"
    cmd = cmd + "PATH=/usr/sbin:$PATH"+"\n"
    cmd = cmd + "PATH=/opt/X11/bin:$PATH"+"\n"
    cmd = cmd + "PATH=/opt/local/bin/:$PATH"+"\n"

the convert command should work with the set system path, if ImageMagick
is installed normally.

the input tu run must be a one-liner (supposing your convert command is correct) quoted correctly:
(supposing TSCx contain an absolute filename that might contain characters that need to be quoted on commandline)

cmd = 'convert +append "%s" "%s" "%s" "%s"' % (TSCa, TSCb, TSCb, TSCb)
output = run(cmd)
print "*** the command"
print cmd
print "*** the result"
print output

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