From 88a4105e7cbfbcd7952b3d47be3279f021f7ad6f Mon Sep 17 00:00:00 2001 From: Kyomotoi Date: Thu, 9 Jun 2022 22:32:12 +0800 Subject: =?UTF-8?q?=F0=9F=92=A9=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ATRI/plugins/kimo/data_source.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ATRI/plugins/kimo') diff --git a/ATRI/plugins/kimo/data_source.py b/ATRI/plugins/kimo/data_source.py index fb3f3f3..025f999 100644 --- a/ATRI/plugins/kimo/data_source.py +++ b/ATRI/plugins/kimo/data_source.py @@ -1,4 +1,3 @@ -import os import json from pathlib import Path from jieba import posseg @@ -12,7 +11,7 @@ from ATRI.exceptions import ReadFileError, WriteFileError CHAT_PATH = Path(".") / "data" / "database" / "kimo" -os.makedirs(CHAT_PATH, exist_ok=True) +CHAT_PATH.mkdir(parents=True, exist_ok=True) KIMO_URL = "https://cdn.jsdelivr.net/gh/Kyomotoi/AnimeThesaurus/data.json" -- cgit v1.2.3