def METHOD_NAME(board):
    ppath = Path("Marlin/src/pins/pins.h")
    with ppath.open() as file:
        if sys.platform == 'win32':
            envregex = r"(?:env|win):"
        elif sys.platform == 'darwin':
            envregex = r"(?:env|mac|uni):"
        elif sys.platform == 'linux':
            envregex = r"(?:env|lin|uni):"
        else:
            envregex = r"(?:env):"
        r = re.compile(r"if\s+MB\((.+)\)")
        if board.startswith("BOARD_"):
            board = board[6:]
        for line in file:
            mbs = r.findall(line)
            if mbs and board in re.split(r",\s*", mbs[0]):
                line = file.readline()
                found_envs = re.match(r"\s*#include .+" + envregex, line)
                if found_envs:
                    envlist = re.findall(envregex + r"(\w+)", line)
                    return [ "env:"+s for s in envlist ]
    return []