17 lines
407 B
Python
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)
|