Skip to content

Instantly share code, notes, and snippets.

@dhylands
Created February 13, 2014 20:00
Show Gist options
  • Save dhylands/8982681 to your computer and use it in GitHub Desktop.
Save dhylands/8982681 to your computer and use it in GitHub Desktop.
Python way to tell if b2g is running
import include.device_utils as utils
try:
(master_pid, child_pids) = utils.get_remote_b2g_pids()
print "B2G is running"
except:
print "B2G is NOT running"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment