more changes for native builds

This commit is contained in:
arabcoders 2025-07-05 19:06:24 +03:00
parent f8bbcc4181
commit 24de1fc6d5

View file

@ -1,14 +1,9 @@
#!/usr/bin/env python3
import io
import os
import sys
os.environ["PYTHONUTF8"] = "1"
if "utf-8" != sys.stdout.encoding.lower():
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8")
sys.stderr = io.TextIOWrapper(sys.stderr.buffer, encoding="utf-8")
import sys
from pathlib import Path
APP_ROOT = str((Path(__file__).parent / "..").resolve())