Skip to content
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
5 changes: 5 additions & 0 deletions run.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import sys
import os
import faulthandler

# OCP's Xw_Window requires an X11 window ID, so we force XCB so winId() is valid under Wayland/XWayland.
if sys.platform == "linux" and "QT_QPA_PLATFORM" not in os.environ:
os.environ["QT_QPA_PLATFORM"] = "xcb"

# PyInstaller with console=False sets sys.stdout/stderr to None on Windows
if sys.stdout is None:
sys.stdout = open("nul", "w")
Expand Down
Loading