Fixed graphics path

This commit is contained in:
Mark Qvist 2022-10-19 22:25:20 +02:00
parent bcf756d0ca
commit 645c2790a9
3 changed files with 20 additions and 4 deletions

View file

@ -99,6 +99,9 @@ class SidebandCore():
elif RNS.vendor.platformutils.is_darwin():
core_path = os.path.abspath(__file__)
self.asset_dir = core_path.replace("/sideband/core.py", "/assets")
elif RNS.vendor.platformutils.get_platform() == "linux":
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"