# 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
    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()

def is_pi():
    #BCM2708
    return 'BCM' in get_arm_hw()

def is_jetson():
    return 'jetson' in get_arm_hw()

def get_arm_hw():
    try:
        return get_stdout('grep Hardware /proc/cpuinfo', shell=True).split(': ')[1].strip()
    except Exception:
        return ''

def get_intel_gen():
    try:

# 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

    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()

def is_pi():
    #BCM2708
    return 'BCM' in get_arm_hw()

def is_jetson():
    return 'jetson' in get_arm_hw()

def get_arm_hw():
    try:
        return get_stdout('grep Hardware /proc/cpuinfo', shell=True).split(': ')[1].strip()
    except Exception:
        return ''

def get_intel_gen():
    try:

        return get_stdout('vainfo | grep "Driver version"', shell=True).split('driver for ')[1].split(' - ')[0]