pass pstrun environ to the process

This commit is contained in:
Maxim Devaev 2022-07-02 17:43:49 +03:00
parent bcc97279e9
commit 968d3b2516

View File

@ -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,
},
))