-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLauncher.py
More file actions
50 lines (48 loc) · 1.54 KB
/
Launcher.py
File metadata and controls
50 lines (48 loc) · 1.54 KB
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
import time
import os
command = ["close", "help", "install", "sebo-dos"]
Start = True
while True:
if Start == True:
Start = False
elif Start == False:
print("")
else:
print("")
print(open("Errors/Unknown.error", "r").read())
time.sleep(10)
break
MainInput = str(input("Launcher: "))
if MainInput == command[0]:
break
if MainInput == command[1]:
print("Commands:")
for commands in command:
print(commands)
elif MainInput == command[2]:
os.system("py Scripts/Install.py")
elif MainInput == command[3]:
print("")
os.system("py Scripts/Sebo-Dos.py")
if open("Data/Closed.data", "r").read() == "True":
if open("Data/Returned.data", "r").read() == "True":
open("Data/Closed.data", "w").write("False")
open("Data/Returned.data", "w").write("False")
elif open("Data/Returned.data", "r").read() == "False":
open("Data/Closed.data", "w").write("False")
break
else:
print("")
print(open("Errors/Data.error", "r").read())
time.sleep(10)
break
elif open("Data/Closed.data", "r").read() == "False":
print("")
print("Sebo-Dos is crashed!")
else:
print("")
print(open("Errors/Data.error", "r").read())
time.sleep(10)
break
else:
print("{" + MainInput + "}" + "is not a command!")