import os
command = "" wd = os.getcwd() print "Shell Window Replacement by fatalGlory" print "" print "" while command != "exit":
command = raw_input("" + wd + ">") if command.split(" ")[0] == "cd":
- try:
- os.chdir(command.split(" ")[1]) wd = os.getcwd()
- print "Bad command or file name."
- cmd2 = os.popen(command) print cmd2.read()
- try: