diff options
author | Moonchild <mcwerewolf@gmail.com> | 2018-08-13 18:52:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-13 18:52:15 +0200 |
commit | 727eefc7c4f2b9197dc26d298340a12ca4feae36 (patch) | |
tree | 05758d17e5ffb49c7519b33af503389caab97ede | |
parent | e1ac3350e21e2cfd9f31b54b86423ef7dcfb3e39 (diff) | |
parent | 9f1bbe47a5f4699957b7604b104ccf8bec91f764 (diff) | |
download | UXP-727eefc7c4f2b9197dc26d298340a12ca4feae36.tar UXP-727eefc7c4f2b9197dc26d298340a12ca4feae36.tar.gz UXP-727eefc7c4f2b9197dc26d298340a12ca4feae36.tar.lz UXP-727eefc7c4f2b9197dc26d298340a12ca4feae36.tar.xz UXP-727eefc7c4f2b9197dc26d298340a12ca4feae36.zip |
Merge pull request #704 from trav90/buildsystem-work
Shell quote environment variable values when dumping them in dump_env.py
-rw-r--r-- | python/mozbuild/mozbuild/action/dump_env.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/python/mozbuild/mozbuild/action/dump_env.py b/python/mozbuild/mozbuild/action/dump_env.py index a6fa19f3a..83e420d68 100644 --- a/python/mozbuild/mozbuild/action/dump_env.py +++ b/python/mozbuild/mozbuild/action/dump_env.py @@ -6,5 +6,11 @@ # 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, value)) + print('%s=%s' % (key, quote(value))) |