def dict_set_path(dic, path, value):
    """Set the value of a dict using path syntax.
    """
    cur = dic
    path = path.split('.')
    for key in path[:-1]:
        cur = cur.setdefault(key, {})
    cur[path[-1]] = value
