The XDG specification includes $XDG_RUNTIME_DIR for user-specific runtime files that should be cleaned up on reboot. It would be nice if appdirs supported this with a user_runtime_dir function that checks this environment variable and falls back to /tmp if it is not set. I'm not sure what reasonable equivalents are for macOS or Windows.
The XDG specification includes
$XDG_RUNTIME_DIRfor user-specific runtime files that should be cleaned up on reboot. It would be nice if appdirs supported this with auser_runtime_dirfunction that checks this environment variable and falls back to/tmpif it is not set. I'm not sure what reasonable equivalents are for macOS or Windows.