Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我想在 Kodi 的菜单中创建一个按钮并在单击它时运行本地 python 脚本,那么最好的方法是什么?
file_path = xbmc.translatePath(os.path.join('在此处插入要运行的文件的路径')) xbmc.executebuiltin("XBMC.RunScript("+file_path+")")
回复很晚,但看到没有其他人回答,所以虽然我会加入以防万一