's'
This commit is contained in:
@@ -109,6 +109,9 @@ class BuiltinSupervisor:
|
||||
out_p.parent.mkdir(parents=True, exist_ok=True)
|
||||
out_f = open(out_p, "ab")
|
||||
err_f = open(err_p, "ab")
|
||||
extra: dict[str, str] = {}
|
||||
if process_name.startswith("youtube2__"):
|
||||
extra["RELAY_CHANNEL_ID"] = process_name[len("youtube2__") :]
|
||||
try:
|
||||
proc = await asyncio.create_subprocess_exec(
|
||||
*argv,
|
||||
@@ -116,7 +119,7 @@ class BuiltinSupervisor:
|
||||
stdout=out_f,
|
||||
stderr=err_f,
|
||||
creationflags=0,
|
||||
env=merge_child_env(),
|
||||
env=merge_child_env(extra),
|
||||
)
|
||||
except Exception as e:
|
||||
out_f.close()
|
||||
|
||||
Reference in New Issue
Block a user