diff options
author | pam@chromium.org <pam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-19 09:33:24 +0000 |
---|---|---|
committer | pam@chromium.org <pam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-19 09:33:24 +0000 |
commit | 7a3622dbbbec6bb16288ff21c2f7f0112da87213 (patch) | |
tree | fb59d62997c9ba4a4560a0237898dbe67179551e /build/gyp_chromium | |
parent | 81acd9115dc0c46bdf8615d300ecfa00c335806c (diff) | |
download | chromium_src-7a3622dbbbec6bb16288ff21c2f7f0112da87213.zip chromium_src-7a3622dbbbec6bb16288ff21c2f7f0112da87213.tar.gz chromium_src-7a3622dbbbec6bb16288ff21c2f7f0112da87213.tar.bz2 |
Set chrome_dir as an absolute path. This makes the path to the hermetic Python still valid when running subprocesses in a different working directory (cwd). For example, gyp\input.py does this when expanding variables.
BUG=79166
TEST='gclient runhooks' succeeds under cygwin with no Python installed in depot_tools
Review URL: http://codereview.chromium.org/6823078
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82088 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/gyp_chromium')
-rwxr-xr-x | build/gyp_chromium | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/gyp_chromium b/build/gyp_chromium index 6a4a66a..3cddef6 100755 --- a/build/gyp_chromium +++ b/build/gyp_chromium @@ -14,7 +14,7 @@ import subprocess import sys script_dir = os.path.dirname(__file__) -chrome_src = os.path.normpath(os.path.join(script_dir, os.pardir)) +chrome_src = os.path.abspath(os.path.join(script_dir, os.pardir)) sys.path.insert(0, os.path.join(chrome_src, 'tools', 'gyp', 'pylib')) import gyp |