Detect OS shutdown or user logout across different operating systems

python at python at
Tue Apr 27 04:09:12 CEST 2010

Is there a OS portable way to have a Python script detect when
its operating system is shutting down or a user is logging out?

If not, any Windows specific tips on how to detect these events?

Thank you,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list