def run(self, pack_textures=True):
path = INFOS.addon.media_path
if pack_textures:
utils.texturepacker(media_path=path,
settings=sublime.load_settings(SETTINGS_FILE))
utils.make_archive(folderpath=path,
archive=os.path.join(path, os.path.basename(path) + ".zip"))
if sublime.ok_cancel_dialog("Zip file created!\nDo you want to show it with a file browser?"):
webbrowser.open(path)
评论列表
文章目录