mirror of
https://github.com/markqvist/Sideband.git
synced 2024-12-28 00:49:32 -05:00
Find asset path on darwin
This commit is contained in:
parent
8eea74c74e
commit
3111959656
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user