(config_path, key_path, value)
Add value to list at key_path
Add value to list at key_path
Add value to list at key_path
def add_config_value(config_path, key_path, value):
    """
    Add value to list at key_path
    """
    # FIXME: Have a file lock here
    # FIXME: Validate schema here
    try:
        with open(config_path) as f:
            config = yaml.load(f)
    except FileNotFoundError:
        config = {}

    config = add_item_to_config(config, key_path, value)

    with open(config_path, "w") as f:
        yaml.dump(config, f)
def add_config_value ( config_path , key_path , value ) : # FIXME: Have a file lock here # FIXME: Validate schema here try : with open ( config_path ) as f : config = yaml . load ( f ) except FileNotFoundError : config = { } config = add_item_to_config ( config , key_path , value ) with open ( config_path , "w" ) as f : yaml . dump ( config , f )