From c41e9e01ade6036338e0d70008159e75345814eb Mon Sep 17 00:00:00 2001 From: MartinW_S2M Date: Fri, 15 Nov 2024 14:26:24 +0100 Subject: [PATCH] [BUG] freeze_support missing; Compiled version did not run multiprocessing funtions --- src/WISDAM/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/WISDAM/main.py b/src/WISDAM/main.py index 40f6a51..61ece4c 100644 --- a/src/WISDAM/main.py +++ b/src/WISDAM/main.py @@ -33,6 +33,7 @@ from collections import OrderedDict import pyproj from pyproj import CRS, datadir as pyproj_datadir +from multiprocessing import freeze_support # PYSIDE imports from PySide6.QtWidgets import (QMainWindow, QAbstractItemView, QApplication, QFileDialog, QMenu, @@ -3542,7 +3543,8 @@ def main(): pyproj_datadir.append_data_dir(path_to_proj_dir.as_posix()) # Nuitka and PyInstaller already bundling now the libraries in the correct place # pyproj.datadir.set_data_dir((path_to_datadir / "proj").as_posix()) - + + freeze_support() app = QApplication() QFontDatabase.addApplicationFont('app/gui_design/fonts/segoeui.ttf') QFontDatabase.addApplicationFont('app/gui_design/fonts/segoeuib.ttf')