From a351022a8f352046ef7cec0b166cfa2e17e63f88 Mon Sep 17 00:00:00 2001 From: jenstandstad Date: Sat, 9 May 2026 13:06:37 +0200 Subject: [PATCH] Adding some fixe --- gnommo/parser.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gnommo/parser.py b/gnommo/parser.py index 1bb443a..ef7bce3 100644 --- a/gnommo/parser.py +++ b/gnommo/parser.py @@ -292,13 +292,13 @@ def parse_slides( ) -> dict[str, SlideDefinition]: """Parse slides.json into slide definitions.""" if config and config.slides_path: - local_slides_path = project_path / 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 + # correctly on case-sensitive filesystems (WSL/Linux). + local_slides_path = project_path / config.slides_path.lower() else: local_slides_path = project_path / "slides.json" - # Resolve case-insensitively before cache lookup (handles Mac vs WSL casing). - local_slides_path = _resolve_case_insensitive(local_slides_path) - # Try cache fallback for reading JSON slides_path, _ = resolve_with_cache(local_slides_path, project_path) if not slides_path.exists():