Adding some fixe
This commit is contained in:
+4
-4
@@ -292,13 +292,13 @@ def parse_slides(
|
|||||||
) -> dict[str, SlideDefinition]:
|
) -> dict[str, SlideDefinition]:
|
||||||
"""Parse slides.json into slide definitions."""
|
"""Parse slides.json into slide definitions."""
|
||||||
if config and config.slides_path:
|
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:
|
else:
|
||||||
local_slides_path = project_path / "slides.json"
|
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
|
# Try cache fallback for reading JSON
|
||||||
slides_path, _ = resolve_with_cache(local_slides_path, project_path)
|
slides_path, _ = resolve_with_cache(local_slides_path, project_path)
|
||||||
if not slides_path.exists():
|
if not slides_path.exists():
|
||||||
|
|||||||
Reference in New Issue
Block a user