def load_sessions():
    LOG.debug('Backup tmux sessions...')

    if not cmd.has_tmux_server():
        LOG.info("No tmux session found, nothing to backup")
        sys.exit(0)

    output = cmd.get_sessions()
    sess = []
    for s in output:
        #s is like  sessName:(200,300):1
        s_l = s.split(config.SEP)
        session =tmux_obj.Session(s_l[0]) 
        session.size = eval(s_l[1])
        session.attached = int(s_l[2])>0
        #load windows
        session.windows = load_windows(session.name)
        sess.append(session)
    return sess
load sessions information
dataset/ETHPy150Open sk1418/retmux/tmuxbk/backup.py/load_sessions