14 lines
319 B
Python
14 lines
319 B
Python
from __future__ import annotations
|
|
|
|
import os
|
|
from pathlib import Path
|
|
|
|
|
|
def zkac_home() -> Path:
|
|
return Path(os.environ.get("ZKAC_HOME", Path.home() / ".zkac"))
|
|
|
|
|
|
def data_dir() -> Path:
|
|
"""Server data directory (overridable via ZKAC_DATA_DIR)."""
|
|
return Path(os.environ.get("ZKAC_DATA_DIR", zkac_home()))
|