usage 0.22.2
修正 1 項
01
獨立 App 產出報告時不再因為找不到神獸圖片而崩潰
如果你是直接執行打包好的獨立 App(.app),現在產出年度報告時不會再直接當掉了。以前在算年度回顧時,系統會去抓鳳凰或飛龍的圖片,但它找圖片的路徑是用給開發者看的原始碼路徑,所以在打包好的 App 裡根本找不到,導致整個報告出不來。現在它懂得在打包好的資源資料夾裡找圖片了,讓報告能順利生出來。就像你把食譜帶去別人家廚房煮菜,以前一直去原本家裡的位置找鹽巴所以煮不出來,現在懂得在別人家的調味料櫃裡找了。
官方原文
**HTML report no longer fails inside the packaged .app**: the year-in-review spirit images (phoenix/dragon) were resolved with a source-tree path that doesn't exist in the py2app bundle, so generating any report raised FileNotFoundError. They are now resolved through the bundle's resource path, with the source-tree path kept as a fallback for source/CLI runs.