more changes for native builds
This commit is contained in:
parent
f8bbcc4181
commit
24de1fc6d5
1 changed files with 1 additions and 6 deletions
|
|
@ -1,14 +1,9 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import io
|
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
|
|
||||||
os.environ["PYTHONUTF8"] = "1"
|
os.environ["PYTHONUTF8"] = "1"
|
||||||
|
|
||||||
if "utf-8" != sys.stdout.encoding.lower():
|
import sys
|
||||||
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8")
|
|
||||||
sys.stderr = io.TextIOWrapper(sys.stderr.buffer, encoding="utf-8")
|
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
APP_ROOT = str((Path(__file__).parent / "..").resolve())
|
APP_ROOT = str((Path(__file__).parent / "..").resolve())
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue