py-vterm-interaction.el/scripts/get_env.py

10 lines
198 B
Python

def get_env(tempfile):
import os
dump_json(
tempfile,
dict(
env=["=".join(el) for el in list(os.environ.items())],
cwd=os.getcwd(),
),
)