From 7a34437ab2477b51db0e9195dbea02a228f4a61a Mon Sep 17 00:00:00 2001 From: Zhao Zuohong Date: Mon, 23 Sep 2024 20:30:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AEencoding=3Dutf-8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index c451625..04b79e0 100644 --- a/main.py +++ b/main.py @@ -62,13 +62,14 @@ class Api: bufsize=1, text=True, cwd=cwd, + encoding="utf-8", ) as p: for line in p.stdout: custom_event(line) window = webview.create_window("mower-ng launcher", "dist/index.html", js_api=Api()) -webview.start() +webview.start(debug=True) with config_path.open("w") as f: json.dump(config, f)