refactor: migrate all config paths to ~/.mytoolkit with MYTOOLKIT_HOME support
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
"""External templates registry for md→pdf / md→docx conversion."""
|
||||
|
||||
import json
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
import click
|
||||
|
||||
CONFIG_PATH = Path.home() / ".config" / "mytoolkit" / "templates.json"
|
||||
_HOME = Path(os.environ.get("MYTOOLKIT_HOME", Path.home() / ".mytoolkit"))
|
||||
CONFIG_PATH = _HOME / "templates.json"
|
||||
|
||||
|
||||
def _read() -> dict:
|
||||
|
||||
Reference in New Issue
Block a user