From a18422a759876fdcd8b971b29f18b9d78e83a7c1 Mon Sep 17 00:00:00 2001 From: Rodja Trappe Date: Fri, 20 Dec 2024 16:30:38 +0100 Subject: [PATCH] ensure timelapse storage dirs --- rosys/analysis/timelapse_recorder.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rosys/analysis/timelapse_recorder.py b/rosys/analysis/timelapse_recorder.py index a5d353bd..dc6d0fbf 100644 --- a/rosys/analysis/timelapse_recorder.py +++ b/rosys/analysis/timelapse_recorder.py @@ -44,6 +44,9 @@ def __init__(self, *, width: int = 800, height: int = 600, capture_rate: float = :param height: height of the images to capture (default: 600) :param capture_rate: images per second to capture (default: 1.0) """ + STORAGE_PATH.mkdir(parents=True, exist_ok=True) + VIDEO_PATH.mkdir(parents=True, exist_ok=True) + self.log = logging.getLogger('rosys.timelapse_recorder') self.width = width self.height = height