diff options
| author | Xavier Claessens <xclaessens@netflix.com> | 2025-11-25 18:34:19 -0500 |
|---|---|---|
| committer | Xavier Claessens <xclaesse@gmail.com> | 2025-11-26 18:29:58 -0500 |
| commit | 054fd1ef13b1e615825e780a73cee4867ce0d8b9 (patch) | |
| tree | 120088c991b617b4435b5603607decb962b3d7d4 /mesonbuild/scripts | |
| parent | bc591f74e8c97bf02d22ecb9d5ec745d3899267e (diff) | |
| download | meson-054fd1ef13b1e615825e780a73cee4867ce0d8b9.tar.gz | |
vsenv: Use a python script to pickle env
This is safer than parsing env from stdout
Diffstat (limited to 'mesonbuild/scripts')
| -rw-r--r-- | mesonbuild/scripts/pickle_env.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mesonbuild/scripts/pickle_env.py b/mesonbuild/scripts/pickle_env.py new file mode 100644 index 000000000..79e613fe0 --- /dev/null +++ b/mesonbuild/scripts/pickle_env.py @@ -0,0 +1,8 @@ +import os +import pickle +import typing as T + +def run(args: T.List[str]) -> int: + with open(args[0], "wb") as f: + pickle.dump(dict(os.environ), f) + return 0 |
