Add module path on desktop

This commit is contained in:
Mark Qvist 2022-07-13 10:53:07 +02:00
parent 24c6e11438
commit feafb74717
2 changed files with 8 additions and 0 deletions

View File

@ -1,10 +1,16 @@
import RNS import RNS
import LXMF import LXMF
import time import time
import sys
import os
from kivy.logger import Logger, LOG_LEVELS from kivy.logger import Logger, LOG_LEVELS
Logger.setLevel(LOG_LEVELS["error"]) 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 kivymd.app import MDApp
from kivy.core.window import Window from kivy.core.window import Window
from kivy.base import EventLoop from kivy.base import EventLoop

View File

@ -46,6 +46,8 @@ setuptools.setup(
long_description_content_type="text/markdown", long_description_content_type="text/markdown",
url="https://unsigned.io/sideband", url="https://unsigned.io/sideband",
packages=setuptools.find_packages(), packages=setuptools.find_packages(),
package_data={'': ['kivymd/fonts/*','kivymd/images/*']},
include_package_data=True,
classifiers=[ classifiers=[
"Programming Language :: Python :: 3", "Programming Language :: Python :: 3",
"License :: Other/Proprietary License", "License :: Other/Proprietary License",