From 3111959656b0d895a0279b1ff6ef27ebb484823c Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Mon, 3 Oct 2022 19:24:46 +0200 Subject: [PATCH] Find asset path on darwin --- sbapp/sideband/core.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sbapp/sideband/core.py b/sbapp/sideband/core.py index d332cd0..8390933 100644 --- a/sbapp/sideband/core.py +++ b/sbapp/sideband/core.py @@ -91,6 +91,9 @@ class SidebandCore(): self.app_dir = android_app_dir+"/io.unsigned.sideband/files/" self.rns_configdir = self.app_dir+"/app_storage/reticulum" self.asset_dir = self.app_dir+"/app/assets" + elif RNS.vendor.platformutils.get_platform() == "darwin": + 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"