调整文件目录,markdown生成image的放到单独的目录下。
This commit is contained in:
@@ -326,8 +326,8 @@ async def convert_md_str_to_image(md_content: str, output_image: str, max_retrie
|
||||
project_root = os.getcwd()
|
||||
project_root_path = Path(project_root).resolve()
|
||||
|
||||
# 创建临时目录
|
||||
temp_dir = project_root_path / "temp"
|
||||
# 创建临时目录 - temp/md2image
|
||||
temp_dir = project_root_path / "temp" / "md2image"
|
||||
try:
|
||||
temp_dir.mkdir(parents=True, exist_ok=True)
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user