Kill all tmux panes before exiting
This commit is contained in:
parent
d88a9f39f2
commit
465a3b42fb
1 changed files with 17 additions and 13 deletions
|
|
@ -9,6 +9,7 @@ import sys
|
||||||
os.chdir(os.path.dirname(os.path.realpath(__file__)))
|
os.chdir(os.path.dirname(os.path.realpath(__file__)))
|
||||||
sys.path.append(os.getcwd())
|
sys.path.append(os.getcwd())
|
||||||
from functions.hw_diags import *
|
from functions.hw_diags import *
|
||||||
|
from functions.tmux import *
|
||||||
init_global_vars()
|
init_global_vars()
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
@ -22,7 +23,10 @@ if __name__ == '__main__':
|
||||||
#pause("Press Enter to exit...")
|
#pause("Press Enter to exit...")
|
||||||
exit_script()
|
exit_script()
|
||||||
except SystemExit:
|
except SystemExit:
|
||||||
|
tmux_kill_all_panes()
|
||||||
pass
|
pass
|
||||||
except:
|
except:
|
||||||
|
tmux_kill_all_panes()
|
||||||
major_exception()
|
major_exception()
|
||||||
|
|
||||||
|
# vim: sts=2 sw=2 ts=2
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue