diff --git a/Difficult_Rocket/client/__init__.py b/Difficult_Rocket/client/__init__.py index fe0313b..7346b96 100644 --- a/Difficult_Rocket/client/__init__.py +++ b/Difficult_Rocket/client/__init__.py @@ -13,8 +13,9 @@ import inspect import functools import traceback -from typing import Callable, Dict, List, TYPE_CHECKING +from pathlib import Path from decimal import Decimal +from typing import Callable, Dict, List, TYPE_CHECKING # third function import rtoml @@ -97,6 +98,10 @@ class Client: def pyglet_load_fonts_folder(folder) -> None: + font_path = Path(folder) + if not font_path.exists(): + font_path.mkdir(parents=True) + return None file_folder_list = os.listdir(folder) for obj in file_folder_list: if os.path.isfile(os.path.join(folder, obj)): diff --git a/docs/src/change_log/dr_sdk.md b/docs/src/change_log/dr_sdk.md index 8df000f..1ec87e8 100644 --- a/docs/src/change_log/dr_sdk.md +++ b/docs/src/change_log/dr_sdk.md @@ -2,7 +2,14 @@ # DR SDK 更新日志 - 最新版本号 - - DR sdk: 0.8.1.0 + - DR sdk: 0.8.2.0 + +## DR sdk 0.8.2.0 + +### Fix + +- issue #27 (https://github.com/shenjackyuanjie/Difficult_Rocket/issues/27) +- ~~为什么每次发完release都要修issue啊 font文件夹不存在就会报错~~ ## DR sdk 0.8.1.0