ActionEditor.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:script.tvguide.fullscreen 作者: primaeval 项目源码 文件源码
def getCommandActions():
    commands = COMMANDS.copy()
    for command in commands:
        actions = commands[command]
        actions = [ACTIONS[x] for x in actions]
        commands[command] = actions
    f = xbmcvfs.File('special://profile/addon_data/script.tvguide.fullscreen/commands.json','rb')
    j = f.read()
    f.close()
    if j:
        new_commands = json.loads(j)
        for c in new_commands:
            if c in commands:
                commands[c] = new_commands[c]
    return commands
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号