security/generate_certdata.py
author Jed Davis <jld@mozilla.com>
Thu, 21 Jun 2018 11:05:00 -0600
changeset 477933 96525f9007cc6090a42710b57d83ba33313c335e
parent 475767 f9a66e05d90ea6e12616e97b1cc52f9727c4ddc7
permissions -rw-r--r--
Bug 1469691 - Fix intermittent launch failure caused by registering a Mach port too late. r=erahm a=lizzard

#!/usr/bin/env python
#
# This exists to paper over differences between gyp's `action` definitions
# and moz.build `GENERATED_FILES` semantics.

import buildconfig
import os
import subprocess


def main(output, *inputs):
    env = dict(os.environ)
    env['PERL'] = str(buildconfig.substs['PERL'])
    output.write(subprocess.check_output([buildconfig.substs['PYTHON'],
                                          inputs[0], inputs[2]], env=env))
    return None