Closed coldfix closed 10 years ago
Use config file to store
Config files can be accessed with ConfigParser.
Note, that the second issue probably is easier to accomplish using argparse rather than docopt. It might be possible with docopt to use a defaultdict with one section of the config file as the fallback.
defaultdict
ConfigParser is a PITA. Possible alternatives for .conf files
.conf
.py:
.yaml:
Use config file to store
Config files can be accessed with ConfigParser.
Note, that the second issue probably is easier to accomplish using argparse rather than docopt. It might be possible with docopt to use a
defaultdict
with one section of the config file as the fallback.