Translate README to English and fix DATA_DIR resolution.

Read get_data_dir from the environment on each request so CLI and server always use the same viewer database path.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-19 16:16:24 +02:00
parent f51f166fa1
commit f2c564e69a
2 changed files with 78 additions and 78 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ DB_PATH = DEFAULT_DB
def get_data_dir() -> Path:
return DATA_DIR
return Path(os.environ.get("DATA_DIR", Path(__file__).parent / "data"))
def _viewer_url(viewer_id: str) -> str: