def check_iface(self):
    
    cmd = "ifconfig | grep mon | cut -d \' \' -f1" # iwconfig isn't grepable
    mon = subprocess.check_output(cmd, shell = True).strip()
    if mon != '':
      self.IFACE_MON = mon
      self.IS_MON = True
      return True
    else:
      return False
Check for any monitor interfaces already set.
dataset/ETHPy150Open jgilhutton/pyxiewps_WPShack-Python/Version-1.0/pyxiewps-EN.py/Config.check_iface