mach_bootstrap.py 519 B

123456789101112131415
  1. # This Source Code Form is subject to the terms of the Mozilla Public
  2. # License, v. 2.0. If a copy of the MPL was not distributed with this
  3. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  4. from __future__ import unicode_literals
  5. import os, sys
  6. def bootstrap(topsrcdir, mozilla_dir=None):
  7. if mozilla_dir is None:
  8. mozilla_dir = os.path.join(topsrcdir, 'platform')
  9. sys.path[0:0] = [mozilla_dir]
  10. import build.mach_bootstrap
  11. return build.mach_bootstrap.bootstrap(topsrcdir, mozilla_dir)