cmdline.py not working in ActiveState Python 2.1

Alan Miller ajm at enteract.com
Sat Jun 23 00:40:01 CEST 2001


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