scripts: gen_config.py: disable stdout output buffering

Python3 line buffers stdout which makes script output confusing so lets
disable it.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
This commit is contained in:
Petr Štetiar 2023-03-06 18:32:43 +01:00 committed by Petr Štetiar
parent 736bfa9af4
commit 17a03e5b82
No known key found for this signature in database
GPG Key ID: 58EE120F30CC02D3

View File

@ -3,10 +3,12 @@
import yaml
from pathlib import Path
from shutil import rmtree
import io
import sys
from subprocess import run
from os import getenv
sys.stdout = io.TextIOWrapper(open(sys.stdout.fileno(), "wb", 0), write_through=True)
profile_folder = Path(getenv("PROFILES", "./profiles"))