[1.1.1] runScript: parameters should be allowed to be everything, not only strings --- not accepted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Won't Fix
|
Undecided
|
RaiMan |
Bug Description
**** will not fix decision:
According to the Python conventions, sys.argv is a list of simple strings, since it represents the parameters given on a commandline when running the script.
For the internal use of runScript you can turn any parameter in the main script to a string using str(parameter) or other methods.
In the target script you can use eval(parameter) to bring back a parameter to its original type (e.g. tupel, list, dictionary, ...)
-------
I met below error when try to use sys.argv[] on sikuli IDE 1.1.1
I am try to parse below array to another script in IDE
Settings.
pt1=("25","225")
pt2=("25","235")
pt3=("127.5","25")
mylist=
print mylist
runScript(
and "D:/KT_
myList=sys.argv[1]
print sys.argv[1]
but error display as
[error] Error caused by: Traceback (most recent call last): File "D:\KT_
What is the error?
Changed in sikuli: | |
status: | New → Fix Committed |
importance: | Undecided → High |
assignee: | nobody → RaiMan (raimund-hocke) |
milestone: | none → 1.1.2 |
Changed in sikuli: | |
status: | Fix Committed → Won't Fix |
importance: | High → Undecided |
milestone: | 1.1.2 → none |
description: | updated |
summary: |
[1.1.1] runScript: parameters should be allowed to be everything, not - only strings + only strings --- not accepted |