def run(self):
if sublime.platform() == "linux":
preset_path = "/usr/share/%s/" % APP_NAME.lower()
elif sublime.platform() == "windows":
preset_path = "C:/%s/" % APP_NAME.lower()
elif platform.system() == "Darwin":
preset_path = os.path.join(os.path.expanduser("~"),
"Applications",
"%s.app" % APP_NAME,
"Contents",
"Resources",
APP_NAME)
else:
preset_path = ""
self.window.show_input_panel("Set Kodi folder",
preset_path,
self.set_kodi_folder,
None,
None)
评论列表
文章目录