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='这个脚本用来扫描筛选脑电记录信息',