mirror of
https://github.com/liberatedsystems/openCom-Companion.git
synced 2024-11-25 06:40:38 +01:00
Fixed asset path on Windows
This commit is contained in:
parent
a428d4c938
commit
48908842c6
@ -155,6 +155,9 @@ class SidebandCore():
|
||||
elif RNS.vendor.platformutils.get_platform() == "linux":
|
||||
core_path = os.path.abspath(__file__)
|
||||
self.asset_dir = core_path.replace("/sideband/core.py", "/assets")
|
||||
elif RNS.vendor.platformutils.is_windows():
|
||||
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