add multiprocessing freeze support for pyinstaller for windows

This commit is contained in:
Christoph Stahl 2024-10-01 14:16:48 +02:00
parent 9a2cfac637
commit 07cd3c1f96

View file

@ -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 typing import TYPE_CHECKING
from argparse import ArgumentParser from argparse import ArgumentParser
import os import os
import multiprocessing
import platformdirs import platformdirs
@ -119,4 +120,6 @@ def main() -> None:
if __name__ == "__main__": if __name__ == "__main__":
if os.name == "nt":
multiprocessing.freeze_support()
main() main()