def parse_executable_str(exec_str):
    """
    Split the string describing the executable into a path part and an
    options part.
    """
    first_space = exec_str.find(" ")
    if first_space == -1:
        first_space = len(exec_str)
    return exec_str[:first_space], exec_str[first_space:]