sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #05225
[Bug 788005] Re: X-1.0rc2: sys.argv doesn't contains script name as a first argument
** Changed in: sikuli
Status: New => Fix Committed
** Changed in: sikuli
Milestone: None => x1.0-rc3
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/788005
Title:
X-1.0rc2: sys.argv doesn't contains script name as a first argument
Status in Sikuli:
Fix Committed
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/788005/+subscriptions
References