def set_kodi_folder(path):
"""
Sets kodi path to *path and saves it if file exists.
"""
if os.path.exists(path):
sublime.load_settings(SETTINGS_FILE).set("kodi_path", path)
sublime.save_settings(SETTINGS_FILE)
else:
logging.critical("Folder %s does not exist." % path)
评论列表
文章目录