diff --git a/xiaomusic/httpserver.py b/xiaomusic/httpserver.py index 3e5339437..e205f7794 100644 --- a/xiaomusic/httpserver.py +++ b/xiaomusic/httpserver.py @@ -82,7 +82,8 @@ def HttpInit(_xiaomusic): config = xiaomusic.config log = xiaomusic.log - app.mount("/static", StaticFiles(directory="xiaomusic/static"), name="static") + folder = os.path.dirname(__file__) + app.mount("/static", StaticFiles(directory=f"{folder}/static"), name="static") reset_http_server()