mirror of
https://github.com/vale981/py-vterm-interaction.el
synced 2025-03-04 17:41:40 -05:00
13 lines
285 B
Python
13 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
|