Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/p/o/pootle-HEAD/pootle/scripts/example-actions/mozlangpack.py   pootle(Download)
from pootle_store.util import absolute_real_path
 
from moztarball import (AURORA, MOZL10N, MozillaAction, getLogger, tempdir,
                        merge_po2moz)
from buildxpi import build_xpi
    def run(self, path, root, tpdir,  # pylint: disable=R0913,R0914
            language, project, vc_root, **kwargs):
        """Generate a Mozilla language pack XPI."""
 
        with tempdir() as l10ndir:
                copyfileifmissing('browser/searchplugins/list.txt')
 
                with tempdir() as xpidir:
 
                    # Attempting to run build_xpi concurrently can fail,