X-1.0rc2: sys.argv doesn't contains script name as a first argument

Bug #788005 reported by anatoly techtonik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Fix Released
Undecided
Unassigned

Bug Description

Python libraries, such as optparse rely on the behavior that sys.argv[0] is the script name - http://docs.python.org/library/sys.html#sys.argv Sikuli omits script name and its sys.argv[0] is the first parameter.

from optparse import OptionParser
import sys
print sys.argv
(options, args) = OptionParser().parse_args()
print options, args

Changed in sikuli:
status: New → Fix Committed
milestone: none → x1.0-rc3
RaiMan (raimund-hocke)
Changed in sikuli:
status: Fix Committed → Fix Released
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.