summaryrefslogtreecommitdiff
path: root/python/mozbuild/mozbuild/action/dump_env.py
blob: 83e420d682fb9e83eb27b8da72921a6016d272db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 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 http://mozilla.org/MPL/2.0/.

# We invoke a Python program to dump our environment in order to get
# native paths printed on Windows so that these paths can be incorporated
# into Python configure's environment.
import os
import sys

sys.path.append(os.path.join(os.path.dirname(__file__), '..'))

from shellutil import quote

for key, value in os.environ.items():
    print('%s=%s' % (key, quote(value)))