autotrain/nextgen/autotrain_next/paths.py
2026-07-24 10:37:32 +08:00

17 lines
407 B
Python

from __future__ import annotations
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
WORK = ROOT / "work"
PROFILES = WORK / "devices"
TASKS = WORK / "tasks"
OUTPUT = WORK / "output"
ROSTER = WORK / "passenger_roster.csv"
CONFIG = ROOT / "config.local.json"
def ensure_workdirs() -> None:
for path in (WORK, PROFILES, TASKS, OUTPUT):
path.mkdir(parents=True, exist_ok=True)