Executing a python script with arguments from a python script
James Stroud
jstroud at mbi.ucla.edu
Mon Dec 12 21:49:41 EST 2005
Larry Bates wrote:
> You can pass arguments into a python script, see getopt module.
> Then to call an external script you would use subsystem module
> (or os.system if you are on earlier version of python).
I think getopt is a little dated. Try optparse. To quote the python
documentation, it is a "More powerful command line option parser".
http://docs.python.org/lib/module-optparse.html
James
More information about the Python-list
mailing list