From 435376cef43c8ad1443ffdd230349fc994fbcfa3 Mon Sep 17 00:00:00 2001 From: Womsxd <45663319+Womsxd@users.noreply.github.com> Date: Tue, 4 Oct 2022 19:31:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config.py b/config.py index a746f45..8b88e6b 100644 --- a/config.py +++ b/config.py @@ -44,6 +44,8 @@ config = { } path = os.path.dirname(os.path.realpath(__file__)) + "/config" +if os.getenv("AutoMihoyoBBS_path") != "": + path = os.getenv("AutoMihoyoBBS_path") config_Path_json = f"{path}/config.json" config_Path = f"{path}/config.yaml" def copy_config():