(original) (raw)

import cmd, thread, time thread.start_new_thread(cmd.Cmd().cmdloop, ()) # Just to keep the main thread alive while time.sleep(10)