diff --git a/spinetoolbox/main.py b/spinetoolbox/main.py index c946b7297..4b27fb187 100644 --- a/spinetoolbox/main.py +++ b/spinetoolbox/main.py @@ -39,8 +39,9 @@ def main(): """Creates main window GUI and starts main event loop.""" - asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) multiprocessing.freeze_support() + if sys.platform == "win32": + asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) logging.basicConfig( stream=sys.stderr, level=logging.DEBUG,