← Back to team overview

sikuli-driver team mailing list archive

[Bug 1744895] Re: [1.1.1] runScript: parameters should be allowed to be everything, not only strings

 

** Changed in: sikuli
       Status: Fix Committed => Won't Fix

** Changed in: sikuli
   Importance: High => Undecided

** Changed in: sikuli
    Milestone: 1.1.2 => None

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1744895

Title:
  [1.1.1] runScript: parameters should be allowed to be everything, not
  only strings

Status in Sikuli:
  Won't Fix

Bug description:
  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.DebugLogs=True
  pt1=("25","225")
  pt2=("25","235")
  pt3=("127.5","25")         
  mylist=(pt1,pt2,pt3)
  print mylist
  runScript("D:/KT_Work/Sikuli/tempTest.sikuli",mylist)

  and "D:/KT_Work/Sikuli/tempTest.sikuli" is as

  myList=sys.argv[1]
  print sys.argv[1]

  but error display as

  [error] Error caused by: Traceback (most recent call last): File
  "D:\KT_Work\Sikuli\5xx.sikuli\5xx.py", line 24, in <module>
  runScript("D:/KT_Work/Sikuli/tempTest.sikuli",pt1) File
  "D:\KT_Work\Sikuli1.1.1\NewSikuli\sikulix.jar\Lib\sikuli\Sikuli.py",
  line 559, in runScript TypeError: run(): 2nd arg can't be coerced to
  String[]

  What is the error?

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1744895/+subscriptions


References