def split_cmd(cmds):
    """
    Split the commands to the list for subprocess

    Args:
        cmds: command(s)

    Returns:
        array commands

    """
    # cmds = shlex.split(cmds)  # disable auto removing \ on windows
    return cmds.split() if isinstance(cmds, string_types) else list(cmds)

    Split the commands to the list for subprocess

    Args:
        cmds: command(s)

    Returns:
        array commands

    
airtest/utils/snippet.py