From 07cd3c1f96e1a9f0d3872bcbb65ac0d66cbd1120 Mon Sep 17 00:00:00 2001 From: Christoph Stahl Date: Tue, 1 Oct 2024 14:16:48 +0200 Subject: [PATCH] add multiprocessing freeze support for pyinstaller for windows --- syng/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/syng/main.py b/syng/main.py index a79897e..2987c02 100644 --- a/syng/main.py +++ b/syng/main.py @@ -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()