From dac6dfc48bdb01880eaf157a6d04658d14b8bd44 Mon Sep 17 00:00:00 2001 From: jenstandstad Date: Sat, 9 May 2026 13:09:41 +0200 Subject: [PATCH] Adding some more fixes for path --- gnommo/parser.py | 2 +- gnommo/transformer.py | 4 ++-- gnommo/validator.py | 6 ++++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/gnommo/parser.py b/gnommo/parser.py index ef7bce3..5b7ce6e 100644 --- a/gnommo/parser.py +++ b/gnommo/parser.py @@ -293,7 +293,7 @@ def parse_slides( """Parse slides.json into slide definitions.""" if config and config.slides_path: # Lowercase the path so that a capital-cased project name embedded by - # the import stage (e.g. "media/slides/Video2/slides.json") resolves + # the import stage (e.g. "media/slides/video2/slides.json") resolves # correctly on case-sensitive filesystems (WSL/Linux). local_slides_path = project_path / config.slides_path.lower() else: diff --git a/gnommo/transformer.py b/gnommo/transformer.py index cfad2fe..df32052 100644 --- a/gnommo/transformer.py +++ b/gnommo/transformer.py @@ -692,8 +692,8 @@ def build_render_plan( if outro_events: total_duration = outro_events[-1].end_time - # Derive slides directory - slides_json_path = project_path / config.slides_path + # Derive slides directory — lowercase path for case-sensitive filesystems (WSL/Linux). + slides_json_path = project_path / config.slides_path.lower() slides_dir = slides_json_path.parent plan = RenderPlan( diff --git a/gnommo/validator.py b/gnommo/validator.py index 36d0045..7e30e8c 100644 --- a/gnommo/validator.py +++ b/gnommo/validator.py @@ -123,8 +123,10 @@ def validate_project( ) # Check all slide images exist - # Slides are in the same directory as the slides.json file - slides_json_path = project_path / config.slides_path + # Slides are in the same directory as the slides.json file. + # Lowercase the configured path so capital-cased project names (e.g. + # "media/slides/Video2/slides.json") resolve on case-sensitive filesystems. + slides_json_path = project_path / config.slides_path.lower() slides_dir = slides_json_path.parent for slide_id, slide_def in slides.items():