From 7233098e55abe586e676c1a4315ace2be13f5402 Mon Sep 17 00:00:00 2001 From: Pekka T Savolainen Date: Fri, 20 Dec 2024 12:58:41 +0200 Subject: [PATCH] Fix RunTimeWarning #3027 --- spinetoolbox/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spinetoolbox/main.py b/spinetoolbox/main.py index 97ac4acd6..c946b7297 100644 --- a/spinetoolbox/main.py +++ b/spinetoolbox/main.py @@ -13,6 +13,7 @@ """Provides the main() function.""" import multiprocessing import os +import asyncio import PySide6 dirname = os.path.dirname(PySide6.__file__) @@ -38,6 +39,7 @@ def main(): """Creates main window GUI and starts main event loop.""" + asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) multiprocessing.freeze_support() logging.basicConfig( stream=sys.stderr,