From 308c578c9fc8fe60c29e322c50fda0e21fa873ac Mon Sep 17 00:00:00 2001 From: shekhar-cis Date: Wed, 7 Sep 2022 13:12:11 +0530 Subject: [PATCH] Add dir absolut path and add xclip & xsel to kivy docker --- .buildbot/kivy/Dockerfile | 2 +- src/bitmessagekivy/mpybit.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.buildbot/kivy/Dockerfile b/.buildbot/kivy/Dockerfile index b9fd865f..10b1e569 100644 --- a/.buildbot/kivy/Dockerfile +++ b/.buildbot/kivy/Dockerfile @@ -11,7 +11,7 @@ RUN apt-get install -yq \ build-essential libcap-dev libssl-dev \ libmtdev-dev libpq-dev \ python3-dev python3-pip python3-virtualenv \ - xvfb ffmpeg + xvfb ffmpeg xclip xsel RUN ln -sf /usr/bin/python3 /usr/bin/python diff --git a/src/bitmessagekivy/mpybit.py b/src/bitmessagekivy/mpybit.py index 7e4399d2..880d0faa 100644 --- a/src/bitmessagekivy/mpybit.py +++ b/src/bitmessagekivy/mpybit.py @@ -8,6 +8,7 @@ Bitmessage android(mobile) interface import os import logging +import sys from functools import partial from kivy.clock import Clock @@ -86,6 +87,7 @@ class NavigateApp(MDApp): def __init__(self): super(NavigateApp, self).__init__() + sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..')) self.data_screens, self.all_data, self.data_screen_dict, response = load_screen_json() self.kivy_state_obj = KivyStateVariables() self.image_dir = load_image_path() @@ -312,4 +314,5 @@ class PaymentMethodLayout(BoxLayout): if __name__ == '__main__': + # workaround for relative imports NavigateApp().run()