mirror of
https://github.com/liberatedsystems/openCom-Companion.git
synced 2024-11-22 13:30:36 +01: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.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"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user