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

Bug #788005 reported by anatoly techtonik on 2011-05-25
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sikuli
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) on 2013-02-21
Changed in sikuli:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers