docs: align videodb event directory handling

This commit is contained in:
Affaan Mustafa
2026-03-10 21:23:25 -07:00
parent 70449a1cd7
commit 192d2b63f2
2 changed files with 11 additions and 5 deletions

View File

@@ -89,6 +89,9 @@ def parse_args() -> tuple[bool, Path]:
output_dir = arg
if output_dir is None:
events_dir = os.environ.get("VIDEODB_EVENTS_DIR")
if events_dir:
return clear, ensure_private_dir(Path(events_dir))
return clear, ensure_private_dir(default_output_dir())
return clear, ensure_private_dir(Path(output_dir))