Skip to content

Instantly share code, notes, and snippets.

@ollybritton
Created October 4, 2017 12:39
Show Gist options
  • Save ollybritton/81d4bef99d57f99a9e0745b589a04487 to your computer and use it in GitHub Desktop.
Save ollybritton/81d4bef99d57f99a9e0745b589a04487 to your computer and use it in GitHub Desktop.
from os import *while True: system("cls") option = raw_input("What would you like to do? Type 'c' for command prompt or 'm' to run os commands in general >> ")  if option == "m":
  while True:   command = raw_input("Type 'esc' to escape at any time >> ")   if command.lower() == "esc":    break
   exec(command)
 else:  while True:   command = raw_input("Type 'esc' to escape at any time >> ")   if command.lower() == "esc":    break
   system(command)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment