whusnoopy / renrenBackup

A backup tool for renren.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

v2.1 exe 文件在 runserver 时无法找到 Flask Template

whusnoopy opened this issue · comments

应该是 PyInstaller 打包时的文件目录随新版本发生了变化,需要修复

https://pyinstaller.readthedocs.io/en/stable/usage.html#what-to-bundle-where-to-search 的说明,用 --add-datatemplatesstatic 目录加进去(不过这样的话,抓到的图片在 static 目录下怎么处理?可能还要确认下)

-w 增加窗口模式运行,可以避免只用命令行模式运行

已修复 https://github.com/whusnoopy/renrenBackup/releases/tag/v2.2

不能用 --add-data 添加 static,这样就没法继续抓取人人的图片放到 static/img 下来展示了,强行指定 Flask 的 templatesstatic 目录绝对路径即可