Add dir absolut path and add xclip & xsel to kivy docker
This commit is contained in:
parent
c91cba8928
commit
308c578c9f
|
@ -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
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
Reference in New Issue
Block a user