security/generate_certdata.py
author Boris Zbarsky <bzbarsky@mit.edu>
Mon, 19 Nov 2018 20:20:05 -0500
changeset 447156 6b60870ec6f8473b578be250179840c5316f0444
parent 421549 f9a66e05d90ea6e12616e97b1cc52f9727c4ddc7
child 519339 75cabbaa36032748e34b1e6c030046ebe2bbffef
permissions -rw-r--r--
Bug 1507540 part 6. Make nsIVariant's "type" a notxpcom attribute. r=froydnj

#!/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