Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Either load a config from the given path or create a new one there.

After running this method the path will be saved for other functions
like :func:`saveConfig()`.

:param cfgpath: The path to the config file.
:type cfgpath: ``str``

        def setConfig(cfgpath):
    """
    Either load a config from the given path or create a new one there.

    After running this method the path will be saved for other functions
    like :func:`saveConfig()`.

    :param cfgpath: The path to the config file.
    :type cfgpath: ``str``
    """

    global location, settings
    location = cfgpath
    try:
        with open(location, 'r') as cfg:
            import pickle
            settings = pickle.load(cfg)
    except IOError:
        print "Creating new config"
        settings = {}
        


src/r/e/reef-HEAD/reef/startup.py   reef(Download)
    config_file = os.path.join(proj_dir, pb.appname_file+".config")
    print "Using " + config_file + " as the config file."
    config.setConfig(config_file)
 
    new_config = not config.onDisk()