diff options
| author | AAGaming <aagaming@riseup.net> | 2023-09-30 13:15:35 -0400 |
|---|---|---|
| committer | marios8543 <marios8543@gmail.com> | 2023-10-17 17:08:23 +0300 |
| commit | 949244e8e6b54921beeefab3524c2de63914f737 (patch) | |
| tree | 0393a4e17c2a47783d40c891a9ee09f7b78cc2ba /backend/src/loader.py | |
| parent | b7d4d57bc28449c33191a942c0bcffbe15226f04 (diff) | |
| download | decky-loader-949244e8e6b54921beeefab3524c2de63914f737.tar.gz decky-loader-949244e8e6b54921beeefab3524c2de63914f737.zip | |
fix paths
Diffstat (limited to 'backend/src/loader.py')
| -rw-r--r-- | backend/src/loader.py | 4 |
1 files changed, 2 insertions, 2 deletions
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: |
