diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-22 23:34:12 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-22 23:34:12 +0000 |
commit | 13b45f9661834d1c67a51bb0ab1d52279e59b89e (patch) | |
tree | 27bbbc5318c512fe808395b7aefb1936e713af7c /tools | |
parent | 6899352997ad195acfc2374a55f01005d5b44de7 (diff) | |
download | chromium_src-13b45f9661834d1c67a51bb0ab1d52279e59b89e.zip chromium_src-13b45f9661834d1c67a51bb0ab1d52279e59b89e.tar.gz chromium_src-13b45f9661834d1c67a51bb0ab1d52279e59b89e.tar.bz2 |
Use $PROGRAMFILES instead of "C:\Program Files\".
Review URL: http://codereview.chromium.org/159241
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21339 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools')
-rw-r--r-- | tools/purify/common.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/purify/common.py b/tools/purify/common.py index 4969234..7702be0 100644 --- a/tools/purify/common.py +++ b/tools/purify/common.py @@ -38,7 +38,9 @@ import time import google.logging_utils # hard-coded location of Rational files and directories -RATIONAL_PATH = os.path.join("C:\\", "Program Files", "Rational") +PROGRAMFILES_PATH = os.environ.get('PROGRAMFILES', + os.path.join("C:\\", "Program Files")) +RATIONAL_PATH = os.path.join(PROGRAMFILES_PATH, "Rational") COMMON_PATH = os.path.join(RATIONAL_PATH, "common") PPLUS_PATH = os.path.join(RATIONAL_PATH, "PurifyPlus") PURIFY_PATH = os.path.join(COMMON_PATH, "purify.exe") |