-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
24 lines (22 loc) · 779 Bytes
/
main.py
File metadata and controls
24 lines (22 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import os
def clear():
os.system("clear")
clear()
with open("PythOS/boot/live.txt","r") as live:
live=live.read()
if live == "True":
with open("PythOS/userdata/username.txt","w") as usr:
usr.write("live-session")
with open("PythOS/userdata/passwd.txt","w") as pw:
pw.write("")
with open("PythOS/boot/insprompt.txt","w") as ip:
ip.write("True")
os.system("cd PythOS/boot && python3 logon.py")
elif live == "False":
with open("PythOS/userdata/username.txt","w") as usr:
usr.write("user")
with open("PythOS/userdata/passwd.txt","w") as pw:
pw.write("")
with open("PythOS/boot/insprompt.txt","w") as ip:
ip.write("False")
os.system("cd PythOS/boot && python3 bmenu.py")