If I want to make a button in Kodi's menu and run a local python script upon clicking it, what's the best way to go about it?
file_path = xbmc.translatePath(os.path.join('insert path here to file you want to run'))
xbmc.executebuiltin("XBMC.RunScript("+file_path+")")
Very late reply but saw no one else had answered so though i'd put in just in case
How can I run a python script from within Kodi?