Python, IIS scripts, and user accounts

view full story

http://serverfault.com – This isn't a question on my specific problem, as I've got that more or less solved, but about IIS/Python and user accounts in general. I have python scripts that I'm running with IIS 7.5 (Mercurial using the hgweb.wsgi script). One of the plugins (largefiles) is getting permission trouble reading and writing files. The script was trying to write files to a temporary directory, by checking the APPDATA and LOCALAPPDATA environment variables, which were returning C:\Windows\System32\config\systemprofile\AppData\Local, and failing due to permissions. I tried printing the USERNAME environment v (HowTos)