From b72d7eabfe6a7347b71dbf0a69691f0839d7544e Mon Sep 17 00:00:00 2001 From: tangchao <735056338@qq.com> Date: Wed, 25 May 2022 23:40:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E7=94=A8pyinstaller=E6=89=93?= =?UTF-8?q?=E5=8C=85=E5=90=8E=EF=BC=8Cpool.map=E5=B7=A5=E4=BD=9C=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sif_retrieval.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sif_retrieval.py b/sif_retrieval.py index a1795b2..d2242d2 100644 --- a/sif_retrieval.py +++ b/sif_retrieval.py @@ -213,6 +213,13 @@ def parse_args(): def main(): + # https://blog.csdn.net/maskxxx/article/details/109292698 + # https://blog.csdn.net/weixin_42146296/article/details/92848315?utm_medium=distribute.pc_relevant.none-task-blog-title-1&spm=1001.2101.3001.4242 + multiprocessing.freeze_support() # 加入这行代码,用pyinstaller打包后,pool.map才能工作正常 + + if (len(sys.argv) > 7): # 1个本py文件 + 6个参数 + print('sif error: 程序安装路径中不能有空格!') + # 解析命令行参数 inputs = parse_args()