From 45a9029955e22404dba0687300b3d1bbfc0d03b5 Mon Sep 17 00:00:00 2001 From: Christian Hammond Date: Mon, 21 Sep 2009 22:29:49 -0700 Subject: 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 --- rbtools/postreview.py | 5 ++--- 1 file 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: -- cgit v1.2.3