python get location of appdata folder code example Example: python get appdata path import os datapath = os.getenv('APPDATA')