Kill all tmux panes before exiting

This commit is contained in:
2Shirt 2018-12-08 18:36:50 -07:00
parent d88a9f39f2
commit 465a3b42fb
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -9,20 +9,24 @@ import sys
os.chdir(os.path.dirname(os.path.realpath(__file__)))
sys.path.append(os.getcwd())
from functions.hw_diags import *
from functions.tmux import *
init_global_vars()
if __name__ == '__main__':
try:
# Show menu
state = State()
menu_diags(state, sys.argv)
# Done
#print_standard('\nDone.')
#pause("Press Enter to exit...")
exit_script()
except SystemExit:
pass
except:
major_exception()
try:
# Show menu
state = State()
menu_diags(state, sys.argv)
# Done
#print_standard('\nDone.')
#pause("Press Enter to exit...")
exit_script()
except SystemExit:
tmux_kill_all_panes()
pass
except:
tmux_kill_all_panes()
major_exception()
# vim: sts=2 sw=2 ts=2