From b0f46276ebe0168a3c02c0fca68fd9cc8f4ecbd9 Mon Sep 17 00:00:00 2001 From: Mike Bailey Date: Sun, 11 May 2025 01:00:41 +1000 Subject: [PATCH] Update paths.py Use root_dir instead of /app This was breaking things for me when I started the app from a script that was not in the root_dir --- api/src/core/paths.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/core/paths.py b/api/src/core/paths.py index 0e60528..771b70c 100644 --- a/api/src/core/paths.py +++ b/api/src/core/paths.py @@ -300,7 +300,7 @@ async def get_web_file_path(filename: str) -> str: ) # Construct web directory path relative to project root - web_dir = os.path.join("/app", settings.web_player_path) + web_dir = os.path.join(root_dir, settings.web_player_path) # Search in web directory search_paths = [web_dir]