[1.1.0] RunServer should accept user arguments for Python scripts (-- arg1 arg2 ...) --- fixed 2015-08-28+

Bug #1480145 reported by h3kdM3x
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Fix Committed
Critical
RaiMan

Bug Description

SikuliX version 1.1.0-20150712.231026-126
Win7 Pro SP1 64 bit Microsoft Windows [Version 6.1.7601]

Run RunServer with command >

c:\Tools\SikuliX-1.1.0>runsikulix.cmd -s -- arg1 arg2 arg3

sys.argv returns value "None" when asked to provide a list of values during run-time >

for arg in sys.argv:
    print arg

Running in IDE passed the values for sys.argv

Revision history for this message
RaiMan (raimund-hocke) wrote : Re: [1.1.0] RunServer should accept arguments

will add it after mid August (on vacation)

summary: - RunServer with option for arguments
+ [1.1.0] RunServer should accept arguments
Changed in sikuli:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.0
Revision history for this message
h3kdM3x (elve-vizi) wrote :

Hi RaiMan,

I would kike to kindly ask you for fix. I am stuck in env param. posting into SX and can't move further.

Thank You.

Revision history for this message
RaiMan (raimund-hocke) wrote :

ok, sorry for the delay.

just fixed it:
https://github.com/RaiMan/SikuliX-2014/commit/67351b3aa8858acac69fd0eb18102f19f791eab8

works with tomorrow's build.

Changed in sikuli:
importance: High → Critical
summary: - [1.1.0] RunServer should accept arguments
+ [1.1.0] RunServer should accept user arguments for Python scripts (--
+ arg1 arg2 ...) --- fixed 2015-08-28+
Revision history for this message
h3kdM3x (elve-vizi) wrote :

Thankx Raiman, tested on WIN7 from cmd line with resolution PASSED.

Win platform > for arguments containing spaces > e.g.

runsikulix.cmd -s -- test1 test2 "test 3"

Revision history for this message
RaiMan (raimund-hocke) wrote :

Thanks for testing.

I will revise the related docs section especially about quoting with apostrophes

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.