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 是标识文件 ,方便启动时,使用线程异步找到并删除系统盘临时文件夹里的缓存文件夹
本文来自博客园,作者:岑惜,转载请注明原文链接:https://www.cnblogs.com/c2g5201314/p/18272706
响应开源精神相互学习,内容良币驱除劣币

浙公网安备 33010602011771号