From 48908842c6c98a9e9aa2c1c984dd76c66fca3300 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Wed, 27 Mar 2024 15:31:38 +0100 Subject: [PATCH] Fixed asset path on Windows --- sbapp/sideband/core.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sbapp/sideband/core.py b/sbapp/sideband/core.py index b493a6d..16b6996 100644 --- a/sbapp/sideband/core.py +++ b/sbapp/sideband/core.py @@ -155,6 +155,9 @@ class SidebandCore(): elif RNS.vendor.platformutils.get_platform() == "linux": core_path = os.path.abspath(__file__) self.asset_dir = core_path.replace("/sideband/core.py", "/assets") + elif RNS.vendor.platformutils.is_windows(): + core_path = os.path.abspath(__file__) + self.asset_dir = core_path.replace("\\sideband\\core.py", "\\assets") else: self.asset_dir = plyer.storagepath.get_application_dir()+"/sbapp/assets"