parameters from configuration files
Thomas Heller <[email protected]> Wed, 16 Mar 2005 21:45:53 +0100
| Newsgroups | gmane.comp.python.optik.user |
|---|---|
| Message-ID | <[email protected]> |
I have a script that potentially takes a huge number of parameters. Some of the parameters have to change from run to run, others are always the same. distutils command line processing allows to specify parameters in a configuration file (actually even two files: a site-wide file, plus a local file in the current directory), which can then extended or overridden on the command line. Since this stuff was written by the same Greg Ward who also gave us optparse: is there a similar mechanism in optparse? Or does someone have a module which extends optparse do do this? I'm *not* asking for an enhancement to the current or a future optparse or optik version, this stuff should work with the optparse that's included with Python 2.4 or better even Python 2.3. Thomas ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click