From 968d3b2516eef7694988c0e52e70b51cb5aff656 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Sat, 2 Jul 2022 17:43:49 +0300 Subject: pass pstrun environ to the process --- kvmd/apps/pstrun/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'kvmd/apps/pstrun/__init__.py') 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, + }, )) -- cgit v1.2.3