From 01298fb05abcf6f717f5f8d1d00b3ca3ec21aea9 Mon Sep 17 00:00:00 2001 From: Flo Greistorfer Date: Tue, 9 Jul 2024 09:07:39 +0200 Subject: [PATCH] fixed path issue --- builder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builder.py b/builder.py index e31c30d..fab8ec1 100755 --- a/builder.py +++ b/builder.py @@ -128,7 +128,7 @@ def webmanifest(_args: Args) -> None: files = os.listdir(os.path.join(STATIC_FILES_DIR, "icons")) if svgsupport and any(file.endswith(".svg") for file in files): svg = [file for file in files if file.endswith(".svg")][0] - icons.append({"src": f"{_args.web_root_url}/icons/{svg}", "type": "image/svg+xml", "sizes": "any"}) + icons.append({"src": f"{_args.web_root_url}.static/icons/{svg}", "type": "image/svg+xml", "sizes": "any"}) for size in ICON_SIZES: tmpimg = BytesIO() sizes = size.split("x") @@ -143,7 +143,7 @@ def webmanifest(_args: Args) -> None: with Image.open(tmpimg) as iconfile: iconfile.save(iconpath, format="PNG") icons.append( - {"src": f"{_args.web_root_url}/.static/icons/{os.path.splitext(svg)[0]}-{size}.png", "sizes": size, "type": "image/png"} + {"src": f"{_args.web_root_url}.static/icons/{os.path.splitext(svg)[0]}-{size}.png", "sizes": size, "type": "image/png"} ) else: for icon in os.listdir(os.path.join(STATIC_FILES_DIR, "icons")):