appdata

How can I get the path to the %APPDATA% directory in Python?

How can I get the path to the %APPDATA% directory in Python? Question: How can I get the path to the %APPDATA% directory in Python? Asked By: fox || Source Answers: import os print os.getenv(‘APPDATA’) Answered By: Jon Clements You can try doing: import os path = os.getenv(‘APPDATA’) array = os.listdir(path) print array Answered By: …

Total answers: 6