I'm working on a Python script that needs to access files in the user's Downloads folder. However, I'm having trouble finding a reliable way to get the path to the Downloads folder that works regardless of the language version of Windows (e.g. English, Polish etc.). Is there a built-in function or module in Python that can help with this?
I've tried using the os.path.expanduser("~") method to get the path to the user's home directory, and then appending "Downloads" to it. However, this doesn't work on non-English versions of Windows since the name of the Downloads folder can be different (e.g. "Pobrane" in Polish).
Any help or advice would be greatly appreciated. Thanks in advance!