mirror of
https://github.com/remsky/Kokoro-FastAPI.git
synced 2025-08-05 16:48:53 +00:00
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:
parent
6f1450c5b4
commit
b0f46276eb
1 changed files with 1 additions and 1 deletions
|
@ -300,7 +300,7 @@ async def get_web_file_path(filename: str) -> str:
|
||||||
)
|
)
|
||||||
|
|
||||||
# Construct web directory path relative to project root
|
# 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 in web directory
|
||||||
search_paths = [web_dir]
|
search_paths = [web_dir]
|
||||||
|
|
Loading…
Add table
Reference in a new issue