cmdline.py not working in ActiveState Python 2.1
David Lees
DavidLSpamNoNo at raqia.com
Fri Jun 22 14:41:44 EDT 2001
More information about the Python-list mailing list
Fri Jun 22 14:41:44 EDT 2001
- Previous message (by thread): cmdline.py not working in ActiveState Python 2.1
- Next message (by thread): cmdline.py not working in ActiveState Python 2.1
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I have the following simple testcode using cmdline.py (by Daniel
Gindikin), which is parsing command lines:
import os,sys,cmdline
b=cmdline.receivedOption('-x')
print b
if b:
print cmdline.getIntegerValueOf('-x')
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.
Thanks in advance,
david lees
- Previous message (by thread): cmdline.py not working in ActiveState Python 2.1
- Next message (by thread): cmdline.py not working in ActiveState Python 2.1
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list