Adding some more fixes for path
This commit is contained in:
+1
-1
@@ -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:
|
||||
|
||||
@@ -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(
|
||||
|
||||
+4
-2
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user