python how to get appdata directoyr code example Example: python get appdata path import os datapath = os.getenv('APPDATA')