From feafb74717c91327c0c7878ac7ac38f0766caed0 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Wed, 13 Jul 2022 10:53:07 +0200 Subject: [PATCH] Add module path on desktop --- sbapp/main.py | 6 ++++++ setup.py | 2 ++ 2 files changed, 8 insertions(+) diff --git a/sbapp/main.py b/sbapp/main.py index 3913397..09466ae 100644 --- a/sbapp/main.py +++ b/sbapp/main.py @@ -1,10 +1,16 @@ import RNS import LXMF import time +import sys +import os from kivy.logger import Logger, LOG_LEVELS Logger.setLevel(LOG_LEVELS["error"]) +if RNS.vendor.platformutils.get_platform() != "android": + local = os.path.dirname(__file__) + sys.path.append(local) + from kivymd.app import MDApp from kivy.core.window import Window from kivy.base import EventLoop diff --git a/setup.py b/setup.py index 7f57e81..241302d 100644 --- a/setup.py +++ b/setup.py @@ -46,6 +46,8 @@ setuptools.setup( long_description_content_type="text/markdown", url="https://unsigned.io/sideband", packages=setuptools.find_packages(), + package_data={'': ['kivymd/fonts/*','kivymd/images/*']}, + include_package_data=True, classifiers=[ "Programming Language :: Python :: 3", "License :: Other/Proprietary License",