thekin

Python - Simple Command Prompt Replica

Oct 7th, 2018
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. import sys
  2. import subprocess
  3.  
  4. subprocess.call("title Command Prompt", shell=True)
  5.  
  6. while True:
  7.     command = raw_input(sys.path[0] + ">")
  8.     subprocess.call(command, shell=True)
Advertisement
Add Comment
Please, Sign In to add comment