mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-24 09:13:37 +02:00
lib.ec.Local._run(): Interpret env as mod_env
An env argument environment passed to Local._run() entirely replaces the environment. Make it modify the enviroment instead. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
9575339972
commit
64a5b5d429
1 changed files with 5 additions and 0 deletions
|
|
@ -75,6 +75,11 @@ class Local(Base):
|
|||
# -- non-interactive mode
|
||||
stdin = asyncio.subprocess.DEVNULL if cmd_input is None else asyncio.subprocess.PIPE
|
||||
|
||||
if env:
|
||||
new_env = os.environ.copy()
|
||||
new_env.update(env)
|
||||
env = new_env
|
||||
|
||||
proc = await asyncio.create_subprocess_exec(
|
||||
*cmd,
|
||||
stdin=stdin,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue