def get_windows_from_session(sess_name):
    """
    return a list of windows by given tmux session name
    like: 1:=:W-name:=:1
    idx:=:name:=:active
    """
    cmd = (CMD_LIST_WINDOWS % sess_name).split(config.CMD_SEP)
    s = util.exec_cmd(cmd)
    return s.split('\n')
dataset/ETHPy150Open sk1418/retmux/tmuxbk/cmd.py/get_windows_from_session/original