Run a command and get back its output
(command)
| 29 | r = sr.Recognizer() |
| 30 | |
| 31 | def runCommand(command): |
| 32 | ''' Run a command and get back its output ''' |
| 33 | proc = subprocess.Popen(command, stdout=subprocess.PIPE, shell=True) |
| 34 | return proc.communicate()[0].split()[0] |
| 35 | |
| 36 | def waitFor(coords, color): |
| 37 | ''' Wait for a coordinate to become a certain color ''' |
no outgoing calls
no test coverage detected