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
This commit is contained in:
Mike Bailey 2025-05-11 01:00:41 +10:00 committed by GitHub
parent 6f1450c5b4
commit b0f46276eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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]