-
Notifications
You must be signed in to change notification settings - Fork 0
/
Installer.py
37 lines (27 loc) · 1.36 KB
/
Installer.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import getpass, os, re
from subprocess import Popen, PIPE
os.chdir("/home/bananapi/Documents/LNcommon")
os.system("sudo python3 setup.py install")
os.chdir("/home/bananapi/Documents/LNdigitalIO")
os.system("sudo python3 setup.py install")
os.chdir("/home/bananapi/Documents/LN_Digital_Emulator")
os.system("sudo python3 setup.py install")
os.chdir("/home/bananapi/Documents/LN_Digital_Scratch_Handler")
os.system("sudo python3 setup.py install")
os.chdir("/home/bananapi/Documents/LN-Installer")
if not os.path.exists("/home/bananapi/LN-Scratch"):
os.makedirs("/home/bananapi/LN-Scratch")
os.system("cp ./examples/* /home/bananapi/LN-Scratch")
if not os.path.exists("/home/bananapi/python3-LNcommon"):
os.makedirs("/home/bananapi/python3-LNcommon")
os.system("cp ./docs/html -R /home/bananapi/python3-LNcommon/")
if not os.path.exists("/home/bananapi/photos"):
os.makedirs("/home/bananapi/photos")
os.system("cp ./icons/* /home/bananapi/photos")
if not os.path.exists("/home/bananapi/Desktop"):
os.makedirs("/home/bananapi/Desktop")
os.system("cp LN-Digital-Emulator.desktop /home/bananapi/Desktop")
os.system("cp LN-Scratch-Handler.desktop /home/bananapi/Desktop")
os.system("cp LN-Scratch.desktop /home/bananapi/Desktop")
os.system("sudo apt-get install python3-pyside")
os.system("sudo apt-get install xterm")