-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.py
78 lines (59 loc) · 1.61 KB
/
install.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import os
os.system("date")
def f1open():
print(" All files will download where is the install file is located so please put it into a separate directory. ^-^")
a = input ("Would you like to download the the pi-cam files? (Y/N): ")
if (a == "Y" or a == "y"):
os.system("mkdir rpi-camera")
os.system("cd rpi-camera/;mkdir pics/")
os.system("cd rpi-camera/;mkdir videos/")
os.system("cd rpi-camera/;wget install.py")
os.system("cd rpi-camera/;wget rpi-camera/make-mp4.py")
os.system("date")
elif (a == "N" or a == "n"):
exit()
else:
f1open()
def f4dependencies():
a = input ("would you like to install dependencies? (Y/N): ")
if (a == "Y" or a == "y"):
f5ffmpeg()
elif (a == "N" or a == "n"):
f2credits()
else:
f4install()
def f5ffmpeg():
a = input ("would you like to install ffmpeg? (Y/N): ")
if (a == "Y" or a == "y"):
os.system("date")
os.system("sudo apt install ffmpeg -y")
os.system("date")
elif (a == "N" or a == "n"):
print("did not install ffmpeg.")
else:
f4install()
def f2credits():
a = input ("Would you like to display the credits? (Y/N): ")
if (a == "Y" or a == "y"):
print("Noah McGehee")
elif (a == "N" or a == "n"):
print("did not display credits.")
else:
f2credits()
def f3instructions():
a = input ("Would you like to download instructions? (Y/N): ")
if (a == "Y" or a == "y"):
os.system("cd rpi-camera/;wget instructions")
elif (a == "N" or a == "n"):
print("did not download instructions.")
else:
f3instructions()
def f6end():
os.system("date")
def main():
f1open()
f3instructions()
f4dependencies()
f2credits()
f6end()
main()