Skip to content

Commit b0f4627

Browse files
authored
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
1 parent 6f1450c commit b0f4627

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/core/paths.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ async def get_web_file_path(filename: str) -> str:
300300
)
301301

302302
# Construct web directory path relative to project root
303-
web_dir = os.path.join("/app", settings.web_player_path)
303+
web_dir = os.path.join(root_dir, settings.web_player_path)
304304

305305
# Search in web directory
306306
search_paths = [web_dir]

0 commit comments

Comments
 (0)