Find asset path on darwin

This commit is contained in:
Mark Qvist 2022-10-03 19:24:46 +02:00
parent 8eea74c74e
commit 3111959656
1 changed files with 3 additions and 0 deletions

View File

@ -91,6 +91,9 @@ class SidebandCore():
self.app_dir = android_app_dir+"/io.unsigned.sideband/files/" self.app_dir = android_app_dir+"/io.unsigned.sideband/files/"
self.rns_configdir = self.app_dir+"/app_storage/reticulum" self.rns_configdir = self.app_dir+"/app_storage/reticulum"
self.asset_dir = self.app_dir+"/app/assets" 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: else:
self.asset_dir = plyer.storagepath.get_application_dir()+"/sbapp/assets" self.asset_dir = plyer.storagepath.get_application_dir()+"/sbapp/assets"