#!/usr/bin/env python import os import sys base_dir = os.path.abspath(os.path.dirname(__file__)) sys.path.append(os.path.join(base_dir, 'build-scripts', 'jhbuild')) from updater import Updater updater = Updater(base_dir) updater.update() import jhbuild.commands import bundlemodule import sanitycheck from config import Config config = Config(base_dir) args = [] command = 'build' if len(sys.argv) > 0: command = sys.argv[1] if len(sys.argv) > 1: args = sys.argv[2:] jhbuild.commands.run(command, config, args)