feat: add runtime diagnostics and path management

This commit is contained in:
2026-04-15 16:55:45 +08:00
parent 7586685d5f
commit 6eefabb9ff
14 changed files with 304 additions and 85 deletions

View File

@@ -3,10 +3,10 @@
import json
import traceback
from datetime import datetime, timezone, timedelta
from pathlib import Path
BASE_DIR = Path.home() / ".coinhunter"
LOG_DIR = BASE_DIR / "logs"
from .runtime import get_runtime_paths
LOG_DIR = get_runtime_paths().logs_dir
SCHEMA_VERSION = 2
CST = timezone(timedelta(hours=8))