author Matt Howell <>
Wed, 24 Aug 2016 10:01:10 -0700
changeset 315853 0bf376ad9b85c1eb5ec3707428151390788976a1
parent 301950 a2e4369f86dcf620b453de3da6525a87ea1808fc
permissions -rw-r--r--
Bug 1292360 - Add attribution data to the telemetry environment block; r=gfritzsche, data-review=bsmedberg MozReview-Commit-ID: 4sltJYJrrFS

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at

import os
import sys
from mozbuild.base import MozbuildObject

config = MozbuildObject.from_environment()

for var in ('topsrcdir', 'topobjdir', 'defines', 'non_global_defines',
    value = getattr(config, var)
    setattr(sys.modules[__name__], var, value)

substs = dict(substs)

for var in os.environ:
    if var != 'SHELL' and var in substs:
        substs[var] = os.environ[var]