feat: store packaged user data under data directory

This commit is contained in:
chengma
2026-07-07 14:12:32 +08:00
parent caa04a9aa7
commit 148c4a73eb
33 changed files with 602 additions and 196 deletions
+3 -2
View File
@@ -4,9 +4,10 @@ from __future__ import annotations
import os
from . import appconfig
TITLE_PROMPT_PATH = "title_prompt.txt"
COVER_PROMPTS_DIR = os.path.join("prompts", "cover")
TITLE_PROMPT_PATH = appconfig.title_prompt_path()
COVER_PROMPTS_DIR = appconfig.cover_prompts_dir()
TEMPLATE_EXT = ".txt"
INVALID_NAME_CHARS = set('\\/:*?"<>|')