update
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from pathlib import Path
|
||||
|
||||
from config import STORAGE_DIR
|
||||
from config import STORAGE_DIR, PROJECTS_DIR, PROJECTS_CACHE_DIR
|
||||
|
||||
|
||||
def safe_basename(topic: str, format_name: str) -> str:
|
||||
@@ -15,3 +15,11 @@ def final_paths(topic: str, format_name: str) -> tuple[Path, Path]:
|
||||
|
||||
def temp_paths(guide_id: str) -> tuple[Path, Path]:
|
||||
return STORAGE_DIR / "html" / f"{guide_id}.tmp.html", STORAGE_DIR / "pdf" / f"{guide_id}.tmp.pdf"
|
||||
|
||||
|
||||
def project_dir(name: str) -> Path:
|
||||
return PROJECTS_DIR / name
|
||||
|
||||
|
||||
def project_cache_path(name: str) -> Path:
|
||||
return PROJECTS_CACHE_DIR / f"{name}.md"
|
||||
|
||||
Reference in New Issue
Block a user