pyinstaller - python 打包exe 执行文件线程启动 - 完整例子

pyinstaller --add-data "cxmodel;cxmodel/." --add-data "./cenxi_py.flag;." -F cenxi.py --onefile --noconsole --additional-hooks-dir=.

cenxi.py 就是启动主文件 , cxmodel是模型资源文件夹 ,cenxi_py.flag  是标识文件 ,方便启动时,使用线程异步找到并删除系统盘临时文件夹里的缓存文件夹

posted @ 2024-06-28 10:42  岑惜  阅读(4)  评论(0编辑  收藏  举报