Commit adc92e5a authored by wanli's avatar wanli

🐞 fix: 修复字体生成模块创建文件夹错误

parent 2dde9429
......@@ -327,7 +327,8 @@ def generate_font():
random_str = uuid.uuid4().hex
temp_dir = Path(os.path.dirname(os.path.dirname(__file__))).joinpath("temp").joinpath(random_str)
if not temp_dir.exists():
temp_dir.mkdir()
# temp_dir.mkdir()
os.makedirs(temp_dir.resolve().as_posix())
fontSavePath = temp_dir.joinpath(font.filename).resolve().as_posix()
font.save(fontSavePath)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment