← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #277479]: SiKuli Unable to Pass Arguments via Sys.arg

 

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

    Status: Answered => Solved

Chathura confirmed that the question is solved:
Hi, Raiman,

I got the argument passing to work.  I had to use double dash "--"
instead of single dash "-" in the command line.

in the code:

import sys

for arg in sys.argv:
    print arg

Command is:
C:\pathtosikuli\runsikulix.cmd -r C:\Sikuli\scripts\mysikulscript.sikuli -- arg1 arg2

note double dash above.

Thank you Raiman. :)

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