Advertisement
GameNationRDF

Python Website & File Launcher! version 0.0.5 (User Update)

Sep 15th, 2013
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.87 KB | None | 0 0
  1. #Python Launcher version 0.0.5
  2. #Coded by GameNationRDF
  3. #It will be updated frequently with bug fixes and new feautures!
  4. import webbrowser
  5. import sys
  6. import os
  7. print ("Here are the things you can do: ")
  8. print ("")
  9. print ("    *Type the website and hit enter to launch that website!")
  10. print ("")
  11. print ("    *Type 'file', and write the location of a file/program to launch it!")
  12. print ("")
  13. print ("    *Type 'exit' to close the program!")
  14. print ("")
  15. while True:
  16.     userIn=str(input("Enter address/command here: "))
  17.     print ("")
  18.     if userIn == ("exit"):
  19.         sys.exit()
  20.     elif userIn == ("file"):
  21.         filename=str(input("    *Enter file place: "))
  22.         os.system("start "+filename)
  23.     else:
  24.         handle=webbrowser.get()
  25.         handle.open(userIn)
  26.  
  27.  
  28. #Changelog:
  29.         # -Better and more understandable User Interface (GUI is in development)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement