PreparationInAdv to config.py

This commit is contained in:
cuu
2019-06-13 15:58:08 +08:00
parent 58fd2e6a1a
commit d75fcc6f1c
8 changed files with 61 additions and 51 deletions

View File

@@ -3,11 +3,11 @@ import os
import pygame
#import math
#mport subprocess
import platform
#from beeprint import pp
from libs.roundrects import aa_round_rect
## local UI import
from UI.util_funcs import ArmSystem
from UI.lang_manager import MyLangManager
class APIOBJ(object):
@@ -24,9 +24,8 @@ class APIOBJ(object):
main_screen._MsgBox.Draw()
main_screen.SwapAndShow()
pygame.time.delay(300)
if "arm" in platform.machine():
os.system("sed -i s/launcher/launchergo/g ~/.bashrc" )
os.system("sudo reboot")
ArmSystem("sed -i s/launcher/launchergo/g ~/.bashrc" )
ArmSystem("sudo reboot")
OBJ = APIOBJ()
def Init(main_screen):

View File

@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
import os
import pygame
import platform
#import commands
import glob
#from beeprint import pp