summaryrefslogtreecommitdiff
path: root/kvmd/apps
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-07-02 17:43:49 +0300
committerMaxim Devaev <[email protected]>2022-07-02 17:43:49 +0300
commit968d3b2516eef7694988c0e52e70b51cb5aff656 (patch)
treeca064a9ea739e6a4cfe15d94c41dd08dbf4f845c /kvmd/apps
parentbcc97279e9346957e0aba34d8f4fb343dd962430 (diff)
pass pstrun environ to the process
Diffstat (limited to 'kvmd/apps')
-rw-r--r--kvmd/apps/pstrun/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/kvmd/apps/pstrun/__init__.py b/kvmd/apps/pstrun/__init__.py
index cd645ad3..2b1b895a 100644
--- a/kvmd/apps/pstrun/__init__.py
+++ b/kvmd/apps/pstrun/__init__.py
@@ -60,7 +60,10 @@ async def _run_process(cmd: List[str], data_path: str) -> asyncio.subprocess.Pro
return (await asyncio.create_subprocess_exec(
*cmd,
preexec_fn=_preexec,
- env={"KVMD_PST_DATA": data_path},
+ env={
+ **os.environ,
+ "KVMD_PST_DATA": data_path,
+ },
))