def dump_config(config):
    """Dump the contents of a parsed config file."""

    print "Config File:"
    print ""

    for section in config.sections():
        print "Section: ", section
        print ""

        for (name, value) in config.items(section):
            print "%s: '%s'" % (name, value)

        if config.has_option(section, 'scenes'):
            scenes = json.loads(config.get(section, 'scenes'))
            print "json scenes:", scenes

        print ""

#
# Main program
#
dataset/ETHPy150Open GeoscienceAustralia/agdc/tests/systest.py/dump_config/original