blob: f9029f5533182b75f381fa7aa635a4812964c571 [file] [log] [blame]
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Extension script to <build>/scripts/common/ to add 'build_internal'
import os
def Extend(pythonpath, cwd):
"""Path extension function (see common.env).
In this invocation, 'cwd' is the <build> directory.
third_party_base = os.path.join(cwd, 'third_party')
build_path = [
os.path.join(cwd, 'scripts'),
os.path.join(cwd, 'site_config'),
# Add 'BUILD/third_party' paths.
build_path += [os.path.join(third_party_base, path) for path in (
return pythonpath.Append(*build_path)