mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
pass pstrun environ to the process
This commit is contained in:
@@ -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,
|
||||
},
|
||||
))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user