# Path: utils/process.py
# def get_stdout(cmd, shell=False):
#     rc, stdout, stderr = run_cmd(cmd, shell=shell)
#     return stdout


from utils.process import get_stdout
    '0005': 'Model B',
    '0006': 'Model B',
    '0007': 'Model A',
    '0008': 'Model A',
    '0009': 'Model A',
    '000d': 'Model B',
    '000e': 'Model B',
    '000f': 'Model B',
    '0010': 'Model B+',
    '0011': 'Compute Module',
    '0012': 'Model A+',
    'a01041': 'Pi 2 Model B',
    'a21041': 'Pi 2 Model B',
}

def get_pi_model():
    rev = get_stdout('grep Revision /proc/cpuinfo', shell=True).split(': ')[1].strip()
    return "RaspberryPi %s" %RPI_REV[rev]

def get_machine():
    #x86_64
    #'armv6l'
    #'armv7l'
    return get_stdout('uname -m')

def is_pc():
    machine = get_machine()
    return 'arm' not in machine

def is_intel():

# Path: utils/process.py
# def get_stdout(cmd, shell=False):
#     rc, stdout, stderr = run_cmd(cmd, shell=shell)
#     return stdout


# Path: utils/hardware.py
from utils.process import get_stdout

    '0005': 'Model B',
    '0006': 'Model B',
    '0007': 'Model A',
    '0008': 'Model A',
    '0009': 'Model A',
    '000d': 'Model B',
    '000e': 'Model B',
    '000f': 'Model B',
    '0010': 'Model B+',
    '0011': 'Compute Module',
    '0012': 'Model A+',
    'a01041': 'Pi 2 Model B',
    'a21041': 'Pi 2 Model B',
}

def get_pi_model():
    rev = get_stdout('grep Revision /proc/cpuinfo', shell=True).split(': ')[1].strip()
    return "RaspberryPi %s" %RPI_REV[rev]

def get_machine():
    #x86_64
    #'armv6l'
    #'armv7l'
    return get_stdout('uname -m')

def is_pc():
    machine = get_machine()
    return 'arm' not in machine

def is_intel():

    return 'Intel' in gpu()