Add dir absolut path and add xclip & xsel to kivy docker

This commit is contained in:
shekhar-cis 2022-09-07 13:12:11 +05:30
parent c91cba8928
commit 308c578c9f
Signed by untrusted user: shekhar-cis
GPG Key ID: F4F00AB04E83F9A7
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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()