mirror of
https://github.com/vale981/py-vterm-interaction.el
synced 2025-03-05 10:01:41 -05:00
12 lines
285 B
Python
12 lines
285 B
Python
def python_vterm__get_context(tempfile):
|
|
import json
|
|
import os
|
|
|
|
with open(tempfile, "w") as f:
|
|
context = dict(
|
|
env=["=".join(el) for el in list(os.environ.items())],
|
|
cwd=os.getcwd(),
|
|
)
|
|
json.dump(context, f)
|
|
|
|
del os, json
|