From 2e926802511889a4a8adab2136f379e24a526592 Mon Sep 17 00:00:00 2001
From: DongDongBan <CatkinYoung@outlook.com>
Date: Fri, 14 Jun 2024 10:09:54 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86pyinstaller=E6=89=93?=
 =?UTF-8?q?=E5=8C=85=E5=A4=9A=E7=BA=BF=E7=A8=8B=E7=9A=84bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 scaneeg.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/scaneeg.py b/scaneeg.py
index 056968d..8a1d6c6 100644
--- a/scaneeg.py
+++ b/scaneeg.py
@@ -19,6 +19,7 @@
 from queue import Queue
 from typing import Optional, Dict
 from shutil import disk_usage
+from multiprocessing import freeze_support
 
 __author__ = 'github.com/DongDongBan'
 
@@ -477,6 +478,9 @@ def show_main_window(dbpath: Optional[str], tmppath: str):
 if __name__ == '__main__':
     # 运行所需环境检查与参数的合法性检查
 
+    # 打包程序时需要的样板代码
+    freeze_support()
+
     parser = argparse.ArgumentParser(
         usage='%(prog)s [--temp-path tempdir] [--debug] [dbpath]',
         description='这个脚本用来扫描筛选脑电记录信息',