On 10/07/2013 04:22 PM, Maria McKinley wrote:
I couldn't get either the sys.argv.extend or sys.argv = [None...] to
work. I just keep getting the error to specify that option. They do
specify it kind of strangely. the option is script.py -sName
which I've never seen before. They just kind of run the option name and
the argument together. I tried all kinds of variations
'-sname'
'-s', 'name'
'-s=name'
's=name'

Nothing works. This library doesn't seem to have an option for running
it directly from the python API. I'm thinking their library was not
tested with actual test code. Meh.
I'm contemplating mucking with their code to set a default for their
'mandatory' option, but I'd really rather not do that.

And yes, testing it as a script would not be unit testing. I'm not sure
what I was imagining there. ;-)

Aargh!. That should have been, supplying the session number from the command line not necessary.

thanks,
Maria


--
Adrian Klaver
adrian.kla...@gmail.com

Reply via email to