Skip to content

Commit

Permalink
Set event_loop_policy only on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ptsavol committed Dec 20, 2024
1 parent 7233098 commit 5f92931
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spinetoolbox/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())

Check warning on line 44 in spinetoolbox/main.py

View check run for this annotation

Codecov / codecov/patch

spinetoolbox/main.py#L44

Added line #L44 was not covered by tests
logging.basicConfig(
stream=sys.stderr,
level=logging.DEBUG,
Expand Down

0 comments on commit 5f92931

Please sign in to comment.