add multiprocessing freeze support for pyinstaller for windows
This commit is contained in:
parent
9a2cfac637
commit
07cd3c1f96
1 changed files with 3 additions and 0 deletions
|
@ -35,6 +35,7 @@ The config file for the client should be a yaml file in the following style::
|
|||
from typing import TYPE_CHECKING
|
||||
from argparse import ArgumentParser
|
||||
import os
|
||||
import multiprocessing
|
||||
|
||||
import platformdirs
|
||||
|
||||
|
@ -119,4 +120,6 @@ def main() -> None:
|
|||
|
||||
|
||||
if __name__ == "__main__":
|
||||
if os.name == "nt":
|
||||
multiprocessing.freeze_support()
|
||||
main()
|
||||
|
|
Loading…
Add table
Reference in a new issue