cmdline.py not working in ActiveState Python 2.1

David Lees deblNonoNOspammy at theworld.com
Sat Jun 23 03:26:53 CEST 2001


Yup, it was not getting the command line, because I was not calling the
cmdline 'init' function.  It works just fine when you add
cmdline.init(sys.argv)


Thanks,

david lees

Alan Miller wrote:
> 
> David Lees (DavidLSpamNoNo at raqia.com) wrote:
> >when called with command line 'testcmd.py -x 3'
> >from a Linux version of Python 2.1 it works correctly. However, using
> >the same build (ActiveState) under windows NT, the command line option
> >is not recognized and 'b' has value zero.
> >
> >Any idea what is going on here?  I think this command line parser used
> >to work on older windows Python distributions.
> 
> Are you sure it's getting the command line at all?  There was some
> discussion recently about the requirement to launch python programs on
> NT as "python testcmd.py -x 3" instead of just "testcmd.py -x 3" to get
> command line options passed correctly.
> 
> ajm



More information about the Python-list mailing list