From 949244e8e6b54921beeefab3524c2de63914f737 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Sat, 30 Sep 2023 13:15:35 -0400 Subject: fix paths --- backend/src/loader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backend/src/loader.py') diff --git a/backend/src/loader.py b/backend/src/loader.py index 684570f7..e59cbcaf 100644 --- a/backend/src/loader.py +++ b/backend/src/loader.py @@ -107,13 +107,13 @@ class Loader: self.watcher.disabled = False async def handle_frontend_assets(self, request: web.Request): - file = path.join(path.dirname(__file__), "static", request.match_info["path"]) + file = path.join(path.dirname(__file__), "..", "static", request.match_info["path"]) return web.FileResponse(file, headers={"Cache-Control": "no-cache"}) async def handle_frontend_locales(self, request: web.Request): req_lang = request.match_info["path"] - file = path.join(path.dirname(__file__), "locales", req_lang) + file = path.join(path.dirname(__file__), "..", "locales", req_lang) if exists(file): return web.FileResponse(file, headers={"Cache-Control": "no-cache", "Content-Type": "application/json"}) else: -- cgit v1.2.3