dotfiles/vscode/.vscode/extensions/ms-toolsai.jupyter-2024.5.0-darwin-arm64/pythonFiles/printEnvVariablesToFile.py
Errol Sancaktar 5f8db31398 alacritty
2024-07-15 17:06:13 -06:00

14 lines
320 B
Python

# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import os
import json
import sys
# Last argument is the target file into which we'll write the env variables as json.
json_file = sys.argv[-1]
with open(json_file, "w") as outfile:
json.dump(dict(os.environ), outfile)