From 24de1fc6d50a98817306714121a5b5ae44284559 Mon Sep 17 00:00:00 2001 From: arabcoders Date: Sat, 5 Jul 2025 19:06:24 +0300 Subject: [PATCH] more changes for native builds --- app/native.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/native.py b/app/native.py index 581a8fe2..f62cd79f 100644 --- a/app/native.py +++ b/app/native.py @@ -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())