From 509f7a04bea0ba5797d38529193c059730b8a831 Mon Sep 17 00:00:00 2001 From: Womsxd <45663319+Womsxd@users.noreply.github.com> Date: Wed, 12 Oct 2022 22:09:11 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E6=AD=A2copy=20config=E5=A4=8D?= =?UTF-8?q?=E5=88=B6=E4=BF=AE=E6=94=B9=E5=90=8E=E7=9A=84config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config.py b/config.py index 0174e11..8382d4a 100644 --- a/config.py +++ b/config.py @@ -42,6 +42,8 @@ config = { } } } +config_raw = {} +config_raw.update(config) path = os.path.dirname(os.path.realpath(__file__)) + "/config" if os.getenv("AutoMihoyoBBS_config_path") is not None: @@ -51,7 +53,7 @@ config_Path = f"{path}/config.yaml" def copy_config(): - return config + return config_raw def load_config_json():