diff options
author | Christian Hammond <chipx86@chipx86.com> | 2009-09-21 22:29:49 -0700 |
---|---|---|
committer | Christian Hammond <chipx86@chipx86.com> | 2009-09-21 22:39:52 -0700 |
commit | 45a9029955e22404dba0687300b3d1bbfc0d03b5 (patch) | |
tree | 20eaf8de472fd03bab715f7ca73964ada2e8934c | |
parent | 864077d8502c856dfc8428477fc59265040a8df6 (diff) |
Fix the path to the user's appdata directory on Win Vista+.
We were hard-coding the path to the user's Application Data directory, which
changed in Windows Vista. We now use the APPDATA environment variable, which
is guaranteed to point to the correct directory.
Fixes bug #1279
-rwxr-xr-x | rbtools/postreview.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/rbtools/postreview.py b/rbtools/postreview.py index 133bc34..d56c06e 100755 --- a/rbtools/postreview.py +++ b/rbtools/postreview.py @@ -2524,9 +2524,8 @@ def determine_client(): return (repository_info, tool) def main(): - if 'USERPROFILE' in os.environ: - homepath = os.path.join(os.environ["USERPROFILE"], "Local Settings", - "Application Data") + if 'APPDATA' in os.environ: + homepath = os.environ['APPDATA'] elif 'HOME' in os.environ: homepath = os.environ["HOME"] else: |