From 0b60a25f2a5eea35092613f487606a26c0d18887 Mon Sep 17 00:00:00 2001 From: glide-the <2533736852@qq.com> Date: Tue, 5 Sep 2023 17:27:43 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9F=A5=E8=AF=86=E5=BA=93=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=AD=98=E5=82=A8=E8=B7=AF=E5=BE=84=20=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=88=9B=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configs/model_config.py.example | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/model_config.py.example b/configs/model_config.py.example index 1acaf1c..440fb4a 100644 --- a/configs/model_config.py.example +++ b/configs/model_config.py.example @@ -101,7 +101,8 @@ if not os.path.exists(LOG_PATH): # 知识库默认存储路径 KB_ROOT_PATH = os.path.join(os.path.dirname(os.path.dirname(__file__)), "knowledge_base") - +if not os.path.exists(KB_ROOT_PATH): + os.mkdir(KB_ROOT_PATH) # 数据库默认存储路径。 # 如果使用sqlite,可以直接修改DB_ROOT_PATH;如果使用其它数据库,请直接修改SQLALCHEMY_DATABASE_URI。 DB_ROOT_PATH = os.path.join(KB_ROOT_PATH, "info.db")