From e4aa6bd0e578645f049bce788871821c21137924 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Mon, 3 Oct 2022 21:09:05 +0200 Subject: [PATCH] Path format on darwin --- sbapp/sideband/core.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sbapp/sideband/core.py b/sbapp/sideband/core.py index 8390933..ec05489 100644 --- a/sbapp/sideband/core.py +++ b/sbapp/sideband/core.py @@ -85,13 +85,15 @@ class SidebandCore(): self.reticulum = None self.app_dir = plyer.storagepath.get_home_dir()+"/.config/sideband" + if self.app_dir.startswith("file://"): + self.app_dir = self.app_dir.replace("file://", "") self.rns_configdir = None - if RNS.vendor.platformutils.get_platform() == "android": + if RNS.vendor.platformutils.is_android(): 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": + elif RNS.vendor.platformutils.is_darwin(): core_path = os.path.abspath(__file__) self.asset_dir = core_path.replace("/sideband/core.py", "/assets") else: