From 83324f114b8ffa65418e6897ebaf467f896900c9 Mon Sep 17 00:00:00 2001 From: moyanj <1561515308@qq.com> Date: Mon, 9 Sep 2024 15:47:43 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84`app/env.py`=E4=BB=A5?= =?UTF-8?q?=E6=94=B9=E8=BF=9B=E9=85=8D=E7=BD=AE=E5=92=8C=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/env.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/env.py b/app/env.py index 6d17acd..c45085e 100644 --- a/app/env.py +++ b/app/env.py @@ -1,8 +1,6 @@ import platformdirs import os - -dirs = platformdirs.PlatformDirs("HoYoCenter") - +from .config import Config def init_dirs(): os.makedirs(dirs.user_config_path, exist_ok=True) os.makedirs(dirs.user_log_path, exist_ok=True) @@ -15,4 +13,6 @@ def init_dirs(): def init(): init_dirs() -init() \ No newline at end of file +dirs = platformdirs.PlatformDirs("HoYoCenter") +init() +config = Config()