mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
pass pstrun environ to the process
This commit is contained in:
parent
bcc97279e9
commit
968d3b2516
@ -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,
|
||||
},
|
||||
))
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user