]> jfr.im git - z_archive/twitter.git/commit
Fix Issue #60 can't write config file on Windows
authorAnmar Mansur <redacted>
Fri, 11 Jan 2013 17:46:50 +0000 (10:46 -0700)
committerAnmar Mansur <redacted>
Fri, 11 Jan 2013 17:46:50 +0000 (10:46 -0700)
commitfaf29edeae327eed4cedd42a78249443d955af5f
tree25ae15fd895fd109622d8410da7c9cfb67bb8807
parentf3e81f37a833d8ce63e2e6c8ed500a1715b825fd
Fix Issue #60 can't write config file on Windows

Windows doesn't have a HOME environment variable. The config file ends up being written to the root of system drive, hence the need for admin rights. Windows does however define a USERPROFILE environment variable that points correctly to the logged in user's profile home folder where most Python programs store their settings. Tested on Windows 7 x64 and Windows 8 x64.
twitter/cmdline.py