build/mach_bootstrap.py
author aceman <acelists@atlas.sk>
Thu, 11 Jul 2013 11:31:55 -0400
changeset 14305 67f97998db4722025dee23a2be04cdcdf48a056c
parent 13509 4c46112cb67718e10cd8043d87984ef37b52acbd
permissions -rw-r--r--
Bug 103870 - Fix some unsafe realloc usage in mailnews. r=Neil

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

from __future__ import unicode_literals

import os, sys

def bootstrap(topsrcdir, mozilla_dir=None):
    if mozilla_dir is None:
        mozilla_dir = os.path.join(topsrcdir, 'mozilla')
    sys.path[0:0] = [mozilla_dir]
    import build.mach_bootstrap
    return build.mach_bootstrap.bootstrap(topsrcdir, mozilla_dir)