Advertisement
ThePiGrammer

PyOS

Dec 18th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. import os, time, sys
  2.  
  3. print ("Booting... \n")
  4. time.sleep(5)
  5. print ("Welcome To PyOS\n")
  6. time.sleep(2)
  7. print ("Loading Users...")
  8.  
  9. Username1 = ("Admin")
  10. User1Password = ("Admin1")
  11. Username2 = ("")
  12. User2Password = ("")
  13.  
  14. time.sleep(3)
  15. print ("Login...")
  16. time.sleep(2)
  17.  
  18. UsernameLogin = input("Username: ")
  19.  
  20. if UsernameLogin == Username1:
  21.  
  22. print("Admin, Welcome Back!")
  23.  
  24. EnterPass1 = input("Password: ")
  25.  
  26. if EnterPass1 == User1Password:
  27. print("Sending you to Desktop...")
  28. time.sleep(3)
  29. User = "Admin"
  30.  
  31.  
  32. else:
  33. print("Incorrect")
  34. quit()
  35.  
  36. if UsernameLogin == Username2:
  37. print("User, Welcome Back")
  38.  
  39. EnterPass1 = input("Password: ")
  40.  
  41. if EnterPass1 == User2Pass:
  42. print("Sending you to Desktop...")
  43. time.sleep(3)
  44. User = "Default"
  45.  
  46. def AdminDesktop():
  47. print("Booting to Admin Desktop...")
  48. time.sleep(2)
  49.  
  50.  
  51. def DefaultUserDesktop1():
  52. print("Booting to User Desktop...")
  53. time.sleep(2)
  54.  
  55. def Help():
  56. print("""Write a Text Document. txt.write. \nRead a Text Document. txt.read.\nTo Exit Desktop. Shutdown.\nCredits. -C\nShow all commands. Help.""")
  57.  
  58. def Credits():
  59. print("Thank you for downloading PyOS\n\n\n")
  60. time.sleep(3)
  61. print("PyOS. Created by Tom Cavilla")
  62.  
  63. if User == "Admin":
  64. AdminDesktop()
  65. time.sleep(2)
  66.  
  67. if User == "Default":
  68. DefaultUserDesktop()
  69. time.sleep(2)
  70.  
  71. CommandLine = input("C: ")
  72.  
  73. if CommandLine == "Help" or "help":
  74. Help()
  75. time.sleep(2)
  76. CommandLine = input("C: ")
  77.  
  78. if CommandLine == "txt.write":
  79. TXT = input("")
  80. CommandLine = input("C: ")
  81.  
  82. if CommandLine == "txt.read":
  83. print(TXT)
  84. CommandLine = input("C: ")
  85.  
  86. if CommandLine == "-C" or "-c":
  87. Credits()
  88. time.sleep(2)
  89. CommandLine = input("C: ")
  90.  
  91. else:
  92. Help()
  93. time.sleep(2)
  94. CommandLine = input("C: ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement