Skip to content

Commit

Permalink
修复了pyinstaller打包多线程的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
DongDongBan committed Jun 14, 2024
1 parent 0bd698c commit 2e92680
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scaneeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'

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

0 comments on commit 2e92680

Please sign in to comment.