Did I find the right examples for you? yes no

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

        def write_config(get_attr, config_file, first_time=False):
    global config_fields
    config = ConfigParser()
    for section in config_fields.keys():
        for key in config_fields[section].keys():
            if first_time:
                config.set(section, key, config_fields[section][key])
                config.set(section, key, get_attr(key))
    with open(config_file, 'w') as cfg:
    return config

src/c/l/cloudmonkey-5.0.0/cloudmonkey/cloudmonkey.py   cloudmonkey(Download)
    from cachemaker import loadcache, savecache, monkeycache, splitverbsubject
    from config import __version__, __description__, __projecturl__
    from config import read_config, write_config, config_file
    from optparse import OptionParser
    from prettytable import PrettyTable
        setattr(self, key, value)  # keys and attributes should have same names
        self.prompt = self.prompt.strip() + " "  # prompt fix
        write_config(self.get_attr, self.config_file)
    def complete_set(self, text, line, begidx, endidx):

src/g/o/Google2Piwik-HEAD/google2piwikgui.py   Google2Piwik(Download)
    def validatePage(self):
        self.wizard().finished = True
        if self.field("save_conf").toBool():
        if self.field("verbose_dev").toBool():

src/p/y/pygist-0.211/pygist/cli.py   pygist(Download)
from .core import delete_gist, create_gist
from .config import login, make_config, write_config, config_file
        #make config file
    if args.get(0) is None: