#NEWLINE# def load_windows( s_name ) : #NEWLINE# #INDENT# 'load windows for given session name' #NEWLINE# LOG . debug ( ( 'Backup windows of session %s' % s_name ) ) #NEWLINE# output = cmd . get_windows_from_session ( s_name ) #NEWLINE# wins = [ ] #NEWLINE# for s in output : #NEWLINE# #INDENT# w_l = s . split ( config . SEP ) #NEWLINE# win = tmux_obj . Window ( s_name , int ( w_l [ 0 ] ) ) #NEWLINE# win . name = w_l [ 1 ] #NEWLINE# win . active = int ( w_l [ 2 ] ) #NEWLINE# win . layout = w_l [ 3 ] #NEWLINE# win . panes = load_panes ( s_name , win . win_id ) #NEWLINE# wins . append ( win ) #NEWLINE# #UNINDENT# return wins