Spaces:
Paused
Paused
File size: 643 Bytes
1fe7075 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | from pathlib import Path
from config.runtime import VISUALIZER_DATA_DIR
DATA_DIR = Path(VISUALIZER_DATA_DIR).resolve()
# Sample room photos the frontends offer ("Try a sample room"); free to process.
SAMPLE_DIR = Path(__file__).resolve().parent.parent / "samples"
UPLOAD_DIR = DATA_DIR / "uploads"
JOB_DIR = DATA_DIR / "jobs"
MATERIAL_DIR = DATA_DIR / "materials"
QA_RUN_DIR = DATA_DIR / "qa-runs"
TIMING_BASELINE_PATH = DATA_DIR / "conversion-timings.json"
UPLOAD_DIR.mkdir(parents=True, exist_ok=True)
JOB_DIR.mkdir(parents=True, exist_ok=True)
MATERIAL_DIR.mkdir(parents=True, exist_ok=True)
QA_RUN_DIR.mkdir(parents=True, exist_ok=True)
|