Skip to content

Commit

Permalink
Fix RunTimeWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
ptsavol committed Dec 20, 2024
1 parent 7a70978 commit 7233098
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spinetoolbox/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"""Provides the main() function."""
import multiprocessing
import os
import asyncio
import PySide6

dirname = os.path.dirname(PySide6.__file__)
Expand All @@ -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,
Expand Down

0 comments on commit 7233098

Please sign in to comment.