How do I find the Windows common application data folder using Python?

If you don’t want to add a dependency for a third-party module like winpaths, I would recommend using the environment variables already available in Windows: What environment variables are available in Windows? Specifically you probably want ALLUSERSPROFILE to get the location of the common user profile folder, which is where the Application Data directory resides. … Read more