NOT handling command-line arguments

Wilson GV (gvw@cs.vu.nl)
Tue, 26 Jul 1994 09:49:30 GMT

I would like to be able to pass command-line arguments to a Python
script for interpretation within the script (rather than by Python
itself), so that I can use #!/usr/local/bin/python line at the top
of the script file, and have the whole thing in a single file. Is
there some way to stop Python interpreting command-line arguments,
or some way to pass those arguments to a #!'ed script without them
being examined by Python? A clean way would be preferred, but I'm
willing to get grubby :-).

Thanks,

================================================================
Gregory V. Wilson gvw@cs.vu.nl
"A week of coding can sometimes save an hour of thought."
================================================================