From f76ad67108c3b26332f3c9a314405b2636fc1e74 Mon Sep 17 00:00:00 2001 From: NinjaCheetah <58050615+NinjaCheetah@users.noreply.github.com> Date: Mon, 12 May 2025 18:30:50 -0400 Subject: [PATCH] Fix image prefix path on Windows --- NUSGet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NUSGet.py b/NUSGet.py index 3b5b795..32d1918 100644 --- a/NUSGet.py +++ b/NUSGet.py @@ -649,7 +649,7 @@ if __name__ == "__main__": # NUSGet look nice and pretty. app.setStyle("fusion") stylesheet = open(os.path.join(os.path.dirname(__file__), "resources", "style.qss")).read() - image_path_prefix = os.path.join(os.path.dirname(__file__), "resources") + image_path_prefix = pathlib.Path(os.path.join(os.path.dirname(__file__), "resources")).resolve().as_posix() stylesheet = stylesheet.replace("{IMAGE_PREFIX}", image_path_prefix) app.setStyleSheet(stylesheet)