How can I get the path to the %APPDATA%
directory in Python?
AppData is a hidden folder located in C:\Users\<username>\AppData. The AppData folder contains custom settings and other information needed by applications.
Press the Windows logo key + R to launch the “Run” App. In the Run app, type %temp% and hit enter. This will open the temporary files folder in the AppData app. Now, press “Ctrl + A” on your computer to select all the temporary files.
import os print os.getenv('APPDATA')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With