Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python do something before exit

import atexit

def exit_handler():
    print 'My application is ending!'

atexit.register(exit_handler)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #exit
ADD COMMENT
Topic
Name
3+3 =