fox fox - 1 year ago 93
Python Question

easiest way to get %appdata% path variable in python

Sorry if this is a redundant question, writing a Python file that needs to pull from the

directory. What is the easiest way to find the path to this folder?

Answer Source
import os
print os.getenv('APPDATA')
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download