Index: gclient_utils.py |
diff --git a/gclient_utils.py b/gclient_utils.py |
index f0d8cec6f49cb99637af1c11ac8e5e54d5ef8bb1..3955534ec4060144617c14e6f8dda697c09681e3 100644 |
--- a/gclient_utils.py |
+++ b/gclient_utils.py |
@@ -658,6 +658,14 @@ def GetMacWinOrLinux(): |
def GetBuildtoolsPath(): |
"""Returns the full path to the buildtools directory. |
This is based on the root of the checkout containing the current directory.""" |
+ |
+ # Overriding the build tools path by environment is highly unsupported and may |
+ # break without warning. Do not rely on this for anything important. |
+ if 'CHROMIUM_BUILDTOOLS_PATH' in os.environ: |
+ override = os.environ['CHROMIUM_BUILDTOOLS_PATH'] |
iannucci
2014/08/13 22:56:49
os.environ.get could also work
val = os.environ.
|
+ if override != None: |
+ return override |
+ |
gclient_root = FindGclientRoot(os.getcwd()) |
if not gclient_root: |
# Some projects might not use .gclient. Try to see whether we're in a git |