Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Python Launcher version 0.0.4
- #Coded by GameNationRDF
- #It will be updated frequently with bug fixes and new feautures!
- import webbrowser
- import sys
- import os
- print ("Type in the website address and hit enter!")
- print ("")
- print ("Hit enter without typing anything to open up your file manager!")
- print ("")
- print ("Type 'file' and hit enter to go to or run a file/program!")
- print ("")
- print ("Basically type 'exit' to close program!")
- print ("")
- while True:
- userIn=str(input("Enter address/command here: "))
- print ("")
- if userIn == ("exit"):
- sys.exit()
- elif userIn == ("file"):
- filename=str(input("Enter file place: "))
- os.system("start "+filename)
- else:
- handle=webbrowser.get()
- handle.open(userIn)
- #Changelog:
- # -Now you can launch files and programs directly in the program!
- # -Program name and user input changed, so that it is not only Websites!
- # - Bug fixed: Closing the app sometimes coused desktop to launch.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement