sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #16208
[Bug 788005] Re: X-1.0rc2: sys.argv doesn't contains script name as a first argument
** Changed in: sikuli
Status: Fix Committed => Fix Released
--
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 Released
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