2 ms·
yeah, that's not a bad way of doing it. I ended up with something more convoluted, partly because of the catch-22 situation of wanting to be able to specify the
by danohuiginn 17y ago
yeah, that's not a bad way of doing it. I ended up with something more convoluted, partly because of the catch-22 situation of wanting to be able to specify the config file from the command-line.
More discussion of this problem:
http://deadbraincells.org/configopt/docs/configopt.html http://deadbraincells.org/configopt/docs/configopt.html
http://wiki.python.org/moin/ConfigParserShootout#ConfigParser.2CoptparseMarriage http://wiki.python.org/moin/ConfigParserShootout#ConfigParse...