Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os, time, sys
- print ("Booting... \n")
- time.sleep(5)
- print ("Welcome To PyOS\n")
- time.sleep(2)
- print ("Loading Users...")
- Username1 = ("Admin")
- User1Password = ("Admin1")
- Username2 = ("")
- User2Password = ("")
- time.sleep(3)
- print ("Login...")
- time.sleep(2)
- UsernameLogin = input("Username: ")
- if UsernameLogin == Username1:
- print("Admin, Welcome Back!")
- EnterPass1 = input("Password: ")
- if EnterPass1 == User1Password:
- print("Sending you to Desktop...")
- time.sleep(3)
- User = "Admin"
- else:
- print("Incorrect")
- quit()
- if UsernameLogin == Username2:
- print("User, Welcome Back")
- EnterPass1 = input("Password: ")
- if EnterPass1 == User2Pass:
- print("Sending you to Desktop...")
- time.sleep(3)
- User = "Default"
- def AdminDesktop():
- print("Booting to Admin Desktop...")
- time.sleep(2)
- def DefaultUserDesktop1():
- print("Booting to User Desktop...")
- time.sleep(2)
- def Help():
- print("""Write a Text Document. txt.write. \nRead a Text Document. txt.read.\nTo Exit Desktop. Shutdown.\nCredits. -C\nShow all commands. Help.""")
- def Credits():
- print("Thank you for downloading PyOS\n\n\n")
- time.sleep(3)
- print("PyOS. Created by Tom Cavilla")
- if User == "Admin":
- AdminDesktop()
- time.sleep(2)
- if User == "Default":
- DefaultUserDesktop()
- time.sleep(2)
- CommandLine = input("C: ")
- if CommandLine == "Help" or "help":
- Help()
- time.sleep(2)
- CommandLine = input("C: ")
- if CommandLine == "txt.write":
- TXT = input("")
- CommandLine = input("C: ")
- if CommandLine == "txt.read":
- print(TXT)
- CommandLine = input("C: ")
- if CommandLine == "-C" or "-c":
- Credits()
- time.sleep(2)
- CommandLine = input("C: ")
- else:
- Help()
- time.sleep(2)
- CommandLine = input("C: ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement