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."""
|
"""Parse slides.json into slide definitions."""
|
||||||
if config and config.slides_path:
|
if config and config.slides_path:
|
||||||
# Lowercase the path so that a capital-cased project name embedded by
|
# 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).
|
# correctly on case-sensitive filesystems (WSL/Linux).
|
||||||
local_slides_path = project_path / config.slides_path.lower()
|
local_slides_path = project_path / config.slides_path.lower()
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -692,8 +692,8 @@ def build_render_plan(
|
|||||||
if outro_events:
|
if outro_events:
|
||||||
total_duration = outro_events[-1].end_time
|
total_duration = outro_events[-1].end_time
|
||||||
|
|
||||||
# Derive slides directory
|
# Derive slides directory — lowercase path for case-sensitive filesystems (WSL/Linux).
|
||||||
slides_json_path = project_path / config.slides_path
|
slides_json_path = project_path / config.slides_path.lower()
|
||||||
slides_dir = slides_json_path.parent
|
slides_dir = slides_json_path.parent
|
||||||
|
|
||||||
plan = RenderPlan(
|
plan = RenderPlan(
|
||||||
|
|||||||
+4
-2
@@ -123,8 +123,10 @@ def validate_project(
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Check all slide images exist
|
# Check all slide images exist
|
||||||
# Slides are in the same directory as the slides.json file
|
# Slides are in the same directory as the slides.json file.
|
||||||
slides_json_path = project_path / config.slides_path
|
# 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
|
slides_dir = slides_json_path.parent
|
||||||
|
|
||||||
for slide_id, slide_def in slides.items():
|
for slide_id, slide_def in slides.items():
|
||||||
|
|||||||
Reference in New Issue
Block a user