2012-09-15, 08:56
I am trying to register an atexist function:
and at various points in the script depending on how it is called, I call sys.exit()
...which should trigger a call to cleanup according to the python docs...
Is there something non-standard about the way xbmc python exits??
Code:
def cleanup():
whatever
import atexit
atexit.register(cleanup)
and at various points in the script depending on how it is called, I call sys.exit()
...which should trigger a call to cleanup according to the python docs...
Is there something non-standard about the way xbmc python exits??