Try this: import signal
def handleSigTERM(): atExit()
signal.signal(signal.SIGTERM, handleSigTERM)
but with the proper function. "atExit()" doesn't seem to be the function that saves the playslist (too lazy to search, plus is pretty late already).
Try this:
import signal
def handleSigTERM():
atExit()
signal. signal( signal. SIGTERM, handleSigTERM)
but with the proper function. "atExit()" doesn't seem to be the function that saves the playslist (too lazy to search, plus is pretty late already).