Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix RunTimeWarning #3028

Merged
merged 2 commits into from
Dec 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 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

Check warning on line 16 in spinetoolbox/main.py

View check run for this annotation

Codecov / codecov/patch

spinetoolbox/main.py#L16

Added line #L16 was not covered by tests
import PySide6

dirname = os.path.dirname(PySide6.__file__)
Expand All @@ -39,6 +40,8 @@
def main():
"""Creates main window GUI and starts main event loop."""
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